Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function it_can_instantiate_from_array(): void |
||
23 | { |
||
24 | $job = Job::fromArray([ |
||
25 | 'type' => 'TestType', |
||
26 | 'id' => 'TestId', |
||
27 | 'status' => 'TestStatus', |
||
28 | 'process' => [], |
||
29 | 'requirement' => [ |
||
30 | 'name' => 'cybercog/laravel-paket', |
||
31 | ], |
||
32 | ]); |
||
33 | |||
34 | $this->assertInstanceOf(Job::class, $job); |
||
35 | $this->assertSame('TestType', $job->getType()); |
||
36 | } |
||
37 | } |
||
38 |