| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function validateMultipleModelLookup() |
||
| 31 | { |
||
| 32 | try { |
||
| 33 | /** |
||
| 34 | * @var Collection|TestUser[] |
||
| 35 | */ |
||
| 36 | $models = TestUser::find([[ |
||
| 37 | 'organization_id' => 100, |
||
| 38 | ], [ |
||
| 39 | 'user_id' => 2, |
||
| 40 | 'organization_id' => 100, |
||
| 41 | ]]); |
||
| 42 | } catch (MissingPrimaryKeyValueException $missingPrimaryKeyValueException) { |
||
| 43 | $this->assertEquals('user_id', $missingPrimaryKeyValueException->getMissedValuePrimaryKey()); |
||
| 44 | } |
||
| 45 | $this->assertFalse($this->doesNotPerformAssertions()); |
||
| 46 | } |
||
| 48 |