Renamed method to be more consistent to what it actually does

This commit is contained in:
Alejandro Celaya
2021-01-04 15:16:51 +01:00
parent a01e0ba337
commit 262a06f624
7 changed files with 9 additions and 9 deletions

View File

@@ -30,13 +30,13 @@ class DomainServiceTest extends TestCase
* @test
* @dataProvider provideExcludedDomains
*/
public function listDomainsWithoutDelegatesIntoRepository(array $domains, array $expectedResult): void
public function listDomainsDelegatesIntoRepository(array $domains, array $expectedResult): void
{
$repo = $this->prophesize(DomainRepositoryInterface::class);
$getRepo = $this->em->getRepository(Domain::class)->willReturn($repo->reveal());
$findDomains = $repo->findDomainsWithout('default.com')->willReturn($domains);
$result = $this->domainService->listDomainsWithout();
$result = $this->domainService->listDomains();
self::assertEquals($expectedResult, $result);
$getRepo->shouldHaveBeenCalledOnce();