Exemplo n.º 1
0
 public function testGetActivePostsCountByTagFailure()
 {
     $testTagData = ['id' => rand(1, 100)];
     $this->insertTagData($testTagData);
     $repository = new MysqlPostRepository(self::$connection);
     $data = $repository->getActivePostsCountByTag($testTagData['id']);
     $this->assertNotFalse($data);
     $this->assertStringMatchesFormat('%d', $data);
     $this->assertEquals('0', $data);
 }