Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testSetAttributeListWithoutId() |
||
12 | { |
||
13 | $this |
||
14 | ->given($testedInstance = $this->newTestedInstance('key', 'Model', 'ModelRepository')) |
||
15 | ->and($testedInstance->setAttributeList([ |
||
16 | new Attribute('not an id'), |
||
17 | ])) |
||
18 | ->exception(function () use ($testedInstance) { |
||
19 | $testedInstance->getIdentifierAttribute(); |
||
20 | }) |
||
21 | ->isInstanceOf(MissingIdentifierException::class) |
||
22 | ; |
||
25 |