| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testModelSerialization() |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var TestUser $model |
||
| 18 | */ |
||
| 19 | $model = TestUser::find([ |
||
| 20 | 'user_id' => 1, |
||
| 21 | 'organization_id' => 100, |
||
| 22 | ]); |
||
| 23 | $this->assertEquals(0, $model->counter); |
||
| 24 | $job = new TestJob($model); |
||
| 25 | $this->dispatch($job); |
||
| 26 | $model->refresh(); |
||
| 27 | $this->assertEquals(3333, $model->counter); |
||
| 28 | } |
||
| 30 |