| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class RegistryTest extends TestCase |
||
| 20 | { |
||
| 21 | public function testMakeJob(): void |
||
| 22 | { |
||
| 23 | $factory = new ContainerRegistry(new Container()); |
||
| 24 | |||
| 25 | $j = $factory->getHandler('spiral.jobs.tests.local.job'); |
||
| 26 | $this->assertInstanceOf(Job::class, $j); |
||
| 27 | |||
| 28 | $this->assertSame(json_encode(['data' => 200]), $j->serialize( |
||
|
|
|||
| 29 | 'spiral.jobs.tests.local.job', |
||
| 30 | ['data' => 200] |
||
| 31 | )); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @expectedException \Spiral\Jobs\Exception\JobException |
||
| 36 | */ |
||
| 37 | public function testMakeUndefined(): void |
||
| 42 | } |
||
| 43 | } |
||
| 44 |