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