Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function validateKeyExclusion() |
||
11 | { |
||
12 | /** |
||
13 | * @var TestUser |
||
14 | */ |
||
15 | $model = TestUser::whereKeyNot([ |
||
16 | 'user_id' => 1, |
||
17 | 'organization_id' => 100, |
||
18 | ]) |
||
19 | ->where('user_id',1) |
||
20 | ->first(); |
||
21 | $this->assertNotNull($model); |
||
22 | $this->assertInstanceOf(TestUser::class, $model); |
||
23 | |||
24 | return $model; |
||
25 | } |
||
76 |