public function testBuildsAFile() { $this->config->shouldReceive('get')->once()->with('simple-guardbuilder::pipelines')->andReturn($this->testPipelines); $builder = new GuardBuilder($this->fs, $this->config); $stub = $builder->buildGuardFile(__DIR__ . '/Guardfile'); $this->fs->put(__DIR__ . '/test.stub', $stub); }
/** * Execute the console command. * * @return void */ public function fire() { $this->builder->buildGuardFile(); }