addLocation() public method

Add other module location.
public addLocation ( string $path )
$path string
 /** @test */
 public function it_migrates_a_module()
 {
     $this->repository->addLocation(__DIR__ . '/../stubs/Recipe');
     $this->artisan('module:migrate', ['module' => 'Recipe']);
     dd(Schema::hasTable('recipe__recipes'), $this->app['db']->table('recipe__recipes')->get());
 }
Esempio n. 2
0
 /** @test */
 public function it_can_enable_a_module()
 {
     $this->repository->addLocation(__DIR__ . '/stubs/Recipe');
     $this->repository->enable('Recipe');
     $this->assertTrue($this->repository->active('Recipe'));
 }