Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function testEquals() |
||
41 | { |
||
42 | $this |
||
43 | ->given($entity1 = new Category(CategoryId::fromNative($this->faker->unique()->uuid()))) |
||
44 | ->and($entity2 = new Category(CategoryId::fromNative($this->faker->ean13()))) |
||
45 | ->then() |
||
46 | ->boolean($entity1->equals($entity1)) |
||
47 | ->isTrue() |
||
48 | ->boolean($entity1->equals($entity2)) |
||
49 | ->isFalse() |
||
50 | ; |
||
51 | } |
||
52 | } |
||
53 |