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

@@ 364-372 (lines=9) @@
361
        $this->assertEquals(count($testData), $data);
362
    }
363
364
    public function testGetActivePostsCountFailure()
365
    {
366
        $repository = new MysqlPostRepository(self::$connection);
367
        $data = $repository->getActivePostsCount();
368
369
        $this->assertNotFalse($data);
370
        $this->assertStringMatchesFormat('%d', $data);
371
        $this->assertEquals('0', $data);
372
    }
373
374
    public function testGetActivePostsByTag()
375
    {
@@ 931-939 (lines=9) @@
928
        $this->assertEquals(count($testData), $data);
929
    }
930
931
    public function testGetActivePostsCountByCategoryFailure()
932
    {
933
        $repository = new MysqlPostRepository(self::$connection);
934
        $data = $repository->getActivePostsCountByCategory('');
935
936
        $this->assertNotFalse($data);
937
        $this->assertStringMatchesFormat('%d', $data);
938
        $this->assertEquals('0', $data);
939
    }
940
941
    public function testGetActivePostsByRelatedTags()
942
    {