Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
16 | 1 | public function testFromNative(): void |
|
17 | { |
||
18 | 1 | $ingredients = ['mushrooms', 'tomatoes', 'onions']; |
|
19 | 1 | $bakePizza = BakePizza::fromNative([ |
|
20 | 1 | 'pizzaId' => 'pizza-42-6-23', |
|
21 | 1 | 'ingredients' => $ingredients |
|
22 | ]); |
||
23 | 1 | $this->assertEquals('pizza-42-6-23', $bakePizza->getPizzaId()); |
|
|
|||
24 | 1 | $this->assertEquals(0, $bakePizza->getKnownAggregateRevision()->toNative()); |
|
25 | 1 | $this->assertEquals($ingredients, $bakePizza->getIngredients()->toNative()); |
|
26 | 1 | } |
|
38 |