Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function findDomainsReturnsExpectedResult(): void |
||
24 | { |
||
25 | $fooDomain = new Domain('foo.com'); |
||
26 | $barDomain = new Domain('bar.com'); |
||
27 | $bazDomain = new Domain('baz.com'); |
||
28 | |||
29 | $this->getEntityManager()->persist($fooDomain); |
||
30 | $this->getEntityManager()->persist($barDomain); |
||
31 | $this->getEntityManager()->persist($bazDomain); |
||
32 | $this->getEntityManager()->flush(); |
||
33 | |||
34 | self::assertEquals([$barDomain, $bazDomain, $fooDomain], $this->repo->findDomainsWithout()); |
||
35 | self::assertEquals([$barDomain, $bazDomain], $this->repo->findDomainsWithout('foo.com')); |
||
36 | self::assertEquals([$bazDomain, $fooDomain], $this->repo->findDomainsWithout('bar.com')); |
||
37 | self::assertEquals([$barDomain, $fooDomain], $this->repo->findDomainsWithout('baz.com')); |
||
38 | } |
||
40 |