| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function testLoadComposer()  | 
            ||
| 13 |     { | 
            ||
| 14 |         $theme = $this->theme('bands/rolling-stones'); | 
            ||
| 15 | |||
| 16 | $theme->make();  | 
            ||
| 17 | |||
| 18 | $file = $theme->paths()->root() . '/composer.json';  | 
            ||
| 19 | |||
| 20 | $composer = new Composer($theme);  | 
            ||
| 21 | |||
| 22 | $info = $composer->load()->info();  | 
            ||
| 23 | |||
| 24 | $this->assertFileExists($file);  | 
            ||
| 25 | $this->assertInstanceOf(stdClass::class, $info);  | 
            ||
| 26 | $this->assertIsString($info->description);  | 
            ||
| 27 | $this->assertIsArray($info->authors);  | 
            ||
| 28 | $this->assertIsString($info->authors[0]->name);  | 
            ||
| 29 | $this->assertIsString($info->authors[0]->email);  | 
            ||
| 30 | }  | 
            ||
| 31 | }  |