maestriam /
samurai
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Maestriam\Samurai\Tests\Feature\Facade; |
||
| 4 | |||
| 5 | use Maestriam\Samurai\Support\Samurai; |
||
| 6 | use Maestriam\Samurai\Tests\TestCase; |
||
| 7 | |||
| 8 | class CreateComponentTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testCreateComponent() |
||
| 11 | { |
||
| 12 | $theme = 'bands/rainbow'; |
||
| 13 | |||
| 14 | $name = 'lady-of-the-lake'; |
||
| 15 | |||
| 16 | $this->theme($theme)->findOrCreate(); |
||
| 17 | |||
| 18 | $component = Samurai::theme($theme)->component($name)->create(); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | $this->assertValidComponent($component); |
||
| 21 | } |
||
| 22 | } |