| @@ 237-244 (lines=8) @@ | ||
| 234 | )); |
|
| 235 | } |
|
| 236 | ||
| 237 | public function testGetActivePostsFailure() |
|
| 238 | { |
|
| 239 | $repository = new MysqlPostRepository(self::$connection); |
|
| 240 | $data = $repository->getActivePosts(); |
|
| 241 | ||
| 242 | $this->assertEmpty($data); |
|
| 243 | $this->assertInternalType('array', $data); |
|
| 244 | } |
|
| 245 | ||
| 246 | public function testGetActivePostsRange() |
|
| 247 | { |
|
| @@ 787-794 (lines=8) @@ | ||
| 784 | )); |
|
| 785 | } |
|
| 786 | ||
| 787 | public function testGetActivePostsByCategoryFailure() |
|
| 788 | { |
|
| 789 | $repository = new MysqlPostRepository(self::$connection); |
|
| 790 | $data = $repository->getActivePostsByCategory(''); |
|
| 791 | ||
| 792 | $this->assertEmpty($data); |
|
| 793 | $this->assertInternalType('array', $data); |
|
| 794 | } |
|
| 795 | ||
| 796 | public function testGetActivePostsByCategoryRange() |
|
| 797 | { |
|
| @@ 1199-1206 (lines=8) @@ | ||
| 1196 | )); |
|
| 1197 | } |
|
| 1198 | ||
| 1199 | public function testGetActivePostsByRelatedTagsFailure() |
|
| 1200 | { |
|
| 1201 | $repository = new MysqlPostRepository(self::$connection); |
|
| 1202 | $data = $repository->getActivePostsByRelatedTags(''); |
|
| 1203 | ||
| 1204 | $this->assertEmpty($data); |
|
| 1205 | $this->assertInternalType('array', $data); |
|
| 1206 | } |
|
| 1207 | ||
| 1208 | protected function insertPostData(array $data) |
|
| 1209 | { |
|