Code Duplication    Length = 9-10 lines in 2 locations

Tests/Unit/Service/SettingsManagerTest.php 2 locations

@@ 273-281 (lines=9) @@
270
    /**
271
     * Test has method when there is no setting.
272
     */
273
    public function testHasWhenThereIsNoSetting()
274
    {
275
        $this->repository->expects($this->once())
276
            ->method('findOneBy')->with($this->equalTo(['name' => 'acme']))->willReturn(null);
277
        $manager = new SettingsManager(
278
            $this->repository,
279
            $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
280
        );
281
282
        $result = $manager->has('acme');
283
284
        $this->assertFalse($result);
@@ 544-553 (lines=10) @@
541
        $this->assertNull($value);
542
    }
543
544
    public function testGetAllProfilesNameList()
545
    {
546
        $this->repository->expects($this->any())->method('execute')->willReturn($this->getDocumentIterator());
547
        $manager = new SettingsManager(
548
            $this->repository,
549
            $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
550
        );
551
        $manager->setCache($this->cache);
552
553
        $value = $manager->getAllProfilesNameList();
554
        $this->assertEquals(['kk'], $value);
555
    }
556
}