| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 19 | 
| Ratio | 100 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php namespace Modules\Setting\Tests; | ||
| 17 | View Code Duplication | public function it_gets_a_setting_without_locale() | |
| 18 |     { | ||
| 19 | // Prepare | ||
| 20 | $data = [ | ||
| 21 | 'core::site-name' => [ | ||
| 22 | 'en' => 'AsgardCMS_en', | ||
| 23 | 'fr' => 'AsgardCMS_fr', | ||
| 24 | ], | ||
| 25 | 'core::template' => 'asgard', | ||
| 26 | 'blog::posts-per-page' => 10, | ||
| 27 | ]; | ||
| 28 | |||
| 29 | // Run | ||
| 30 | $this->settingRepository->createOrUpdate($data); | ||
| 31 | |||
| 32 | // Assert | ||
| 33 |         $setting = $this->setting->get('core::site-name'); | ||
| 34 |         $this->assertEquals('AsgardCMS_en', $setting); | ||
| 35 | } | ||
| 36 | |||
| 68 |