Code Duplication    Length = 9-10 lines in 2 locations

Tests/Unit/Service/SettingsManagerTest.php 2 locations

@@ 232-240 (lines=9) @@
229
    /**
230
     * Test has method when there is no setting.
231
     */
232
    public function testHasWhenThereIsNoSetting()
233
    {
234
        $this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo(['name' => 'acme']))->willReturn(null);
235
        $manager = new SettingsManager($this->repository, $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'));
236
237
        $result = $manager->has('acme');
238
239
        $this->assertFalse($result);
240
    }
241
242
    /**
243
     * Tests setting update.
@@ 481-490 (lines=10) @@
478
        $this->assertNull($value);
479
    }
480
481
    public function testGetAllProfilesNameList()
482
    {
483
        $this->repository->expects($this->any())->method('execute')->willReturn($this->getDocumentIterator());
484
        $manager = new SettingsManager($this->repository, $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'));
485
        $manager->setCache($this->cache);
486
487
        $value = $manager->getAllProfilesNameList();
488
        $this->assertEquals(['kk'], $value);
489
490
    }
491
}
492