Code Duplication    Length = 9-9 lines in 3 locations

tests/unit/Domain/Stream/Activity/MysqlActivityRepositoryTest.php 1 location

@@ 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
    {

tests/unit/Domain/Blog/Post/MysqlPostRepositoryTest.php 2 locations

@@ 363-371 (lines=9) @@
360
        $this->assertEquals(count($testData), $data);
361
    }
362
363
    public function testGetActivePostsCountFailure()
364
    {
365
        $repository = new MysqlPostRepository(self::$connection);
366
        $data = $repository->getActivePostsCount();
367
368
        $this->assertNotFalse($data);
369
        $this->assertStringMatchesFormat('%d', $data);
370
        $this->assertEquals('0', $data);
371
    }
372
373
    public function testGetActivePostsByTag()
374
    {
@@ 940-948 (lines=9) @@
937
        $this->assertEquals(count($testData), $data);
938
    }
939
940
    public function testGetActivePostsCountByCategoryFailure()
941
    {
942
        $repository = new MysqlPostRepository(self::$connection);
943
        $data = $repository->getActivePostsCountByCategory('');
944
945
        $this->assertNotFalse($data);
946
        $this->assertStringMatchesFormat('%d', $data);
947
        $this->assertEquals('0', $data);
948
    }
949
950
    public function testGetActivePostsByRelatedTags()
951
    {