Total Complexity | 4 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class OtherQueriesTest extends CompositeKeyBaseUnit |
||
8 | { |
||
9 | /** @test */ |
||
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 | } |
||
26 | |||
27 | /** @test |
||
28 | * @depends validateSingleModelLookup |
||
29 | */ |
||
30 | public function validateSingleModelLookupModel(TestUser $model) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @test |
||
39 | */ |
||
40 | public function validateDeleteModel() |
||
53 | ])); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @test |
||
58 | */ |
||
59 | public function validateDeleteWithoutFetching() |
||
72 | ])); |
||
73 | } |
||
76 |