We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 26 | public function testFieldsGetsTranslated()  | 
            ||
| 27 |     { | 
            ||
| 28 | $this->crudPanel->create([  | 
            ||
| 29 | 'title' => 'english title',  | 
            ||
| 30 | 'description' => 'english description',  | 
            ||
| 31 | ]);  | 
            ||
| 32 | |||
| 33 | $model = TranslatableModel::first();  | 
            ||
| 34 | |||
| 35 |         $this->assertEquals('english title', $model->title); | 
            ||
| 36 | |||
| 37 | config(['app.locale' => 'fr']);  | 
            ||
| 38 | |||
| 39 |         $this->assertEquals('english title', $model->title); | 
            ||
| 40 | |||
| 41 | $this->crudPanel->update(1, ['title' => 'french title']);  | 
            ||
| 42 | |||
| 43 | $model->refresh();  | 
            ||
| 44 | |||
| 45 |         $this->assertEquals('french title', $model->title); | 
            ||
| 46 | }  | 
            ||
| 48 |