| @@ 236-243 (lines=8) @@ | ||
| 233 | )); |
|
| 234 | } |
|
| 235 | ||
| 236 | public function testGetActivePostsFailure() |
|
| 237 | { |
|
| 238 | $repository = new MysqlPostRepository(self::$connection); |
|
| 239 | $data = $repository->getActivePosts(); |
|
| 240 | ||
| 241 | $this->assertEmpty($data); |
|
| 242 | $this->assertInternalType('array', $data); |
|
| 243 | } |
|
| 244 | ||
| 245 | public function testGetActivePostsRange() |
|
| 246 | { |
|
| @@ 796-803 (lines=8) @@ | ||
| 793 | )); |
|
| 794 | } |
|
| 795 | ||
| 796 | public function testGetActivePostsByCategoryFailure() |
|
| 797 | { |
|
| 798 | $repository = new MysqlPostRepository(self::$connection); |
|
| 799 | $data = $repository->getActivePostsByCategory(''); |
|
| 800 | ||
| 801 | $this->assertEmpty($data); |
|
| 802 | $this->assertInternalType('array', $data); |
|
| 803 | } |
|
| 804 | ||
| 805 | public function testGetActivePostsByCategoryRange() |
|
| 806 | { |
|
| @@ 1208-1215 (lines=8) @@ | ||
| 1205 | )); |
|
| 1206 | } |
|
| 1207 | ||
| 1208 | public function testGetActivePostsByRelatedTagsFailure() |
|
| 1209 | { |
|
| 1210 | $repository = new MysqlPostRepository(self::$connection); |
|
| 1211 | $data = $repository->getActivePostsByRelatedTags(''); |
|
| 1212 | ||
| 1213 | $this->assertEmpty($data); |
|
| 1214 | $this->assertInternalType('array', $data); |
|
| 1215 | } |
|
| 1216 | ||
| 1217 | protected function insertPostData(array $data) |
|
| 1218 | { |
|