public function setUsed($name)
{
$module = $this->findOrFail($name);
$this->app['files']->put($this->getUsedStoragePath(), $module);
}
/** @test */ public function it_sets_used_module() { $this->repository->addLocation(__DIR__ . '/stubs/Recipe'); $this->repository->setUsed('Recipe'); $this->assertEquals('Recipe', $this->repository->getUsed()); $this->assertEquals('Recipe', $this->repository->getUsedNow()); }