Skip to content

Commit

Permalink
Small refactor for array
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Mar 3, 2014
1 parent 648968e commit d63f927
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
*/
class FeatureContext extends BehatContext
{
/**
* The command that we're testing
*
* @var CommandTester
*/
protected $tester;

/**
Expand All @@ -45,10 +50,10 @@ public function tearDown()
/**
* @When /^I generate a model with "([^"]*)"$/
*/
public function iGenerateAModelWith($name)
public function iGenerateAModelWith($modelName)
{
$this->tester = new CommandTester(App::make('Way\Generators\Laravel\ModelGeneratorCommand'));
$this->tester->execute(['modelName' => $name]);
$this->tester->execute(compact('modelName'));
}

/**
Expand All @@ -57,7 +62,7 @@ public function iGenerateAModelWith($name)
public function iGenerateASeedWith($tableName)
{
$this->tester = new CommandTester(App::make('Way\Generators\Laravel\SeederGeneratorCommand'));
$this->tester->execute(['tableName' => $tableName]);
$this->tester->execute(compact('tableName'));
}

/**
Expand Down

0 comments on commit d63f927

Please sign in to comment.