| @@ 357-365 (lines=9) @@ | ||
| 354 | $this->assertEquals(count($testData), $data); |
|
| 355 | } |
|
| 356 | ||
| 357 | public function testGetActivePostsCountFailure() |
|
| 358 | { |
|
| 359 | $repository = new MysqlPostRepository(self::$connection); |
|
| 360 | $data = $repository->getActivePostsCount(); |
|
| 361 | ||
| 362 | $this->assertNotFalse($data); |
|
| 363 | $this->assertStringMatchesFormat('%d', $data); |
|
| 364 | $this->assertEquals('0', $data); |
|
| 365 | } |
|
| 366 | ||
| 367 | public function testGetActivePostsByTag() |
|
| 368 | { |
|
| @@ 215-223 (lines=9) @@ | ||
| 212 | $this->assertEquals(count($testData), $data); |
|
| 213 | } |
|
| 214 | ||
| 215 | public function testGetActivitiesCountEmpty() |
|
| 216 | { |
|
| 217 | $repository = new MysqlActivityRepository(self::$connection); |
|
| 218 | $data = $repository->getActivitiesCount(); |
|
| 219 | ||
| 220 | $this->assertNotFalse($data); |
|
| 221 | $this->assertStringMatchesFormat('%d', $data); |
|
| 222 | $this->assertEquals('0', $data); |
|
| 223 | } |
|
| 224 | ||
| 225 | public function testGetActivitiesByType() |
|
| 226 | { |
|