Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function validateSingleModelLookup() |
||
13 | { |
||
14 | try { |
||
15 | /** |
||
16 | * @var TestUser |
||
17 | */ |
||
18 | $model = TestUser::find( |
||
|
|||
19 | [ |
||
20 | 'user_id' => 1, |
||
21 | ] |
||
22 | ); |
||
23 | } catch (MissingPrimaryKeyValueException $missingPrimaryKeyValueException) { |
||
24 | $this->assertEquals('organization_id', $missingPrimaryKeyValueException->getMissedValuePrimaryKey()); |
||
25 | } |
||
26 | $this->assertFalse($this->doesNotPerformAssertions()); |
||
27 | } |
||
48 |