Skip to content

Commit

Permalink
Add 'Given I bootstrap this code' task for Behat.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamech committed Jul 26, 2019
1 parent 724579c commit d2b8247
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/bootstrap/Drumkit/DrumkitContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ public function iBootstrapDrumkit()
$this->iRun("echo 'include .mk/GNUmakefile' > Makefile");
}

/**
* @Given I bootstrap this code
*/
public function iBootstrapThisCode()
{
$this->iAmInATemporaryDirectory();
$this->iRun("cp -r " . $this->getOrigDir() . "/* .");
$this->iRun("cp -r " . $this->getOrigDir() . "/.mk .");
$this->iRun("cp -r " . $this->getOrigDir() . "/.git .");
}

/**
* @Then the file :file should contain:
Expand Down

0 comments on commit d2b8247

Please sign in to comment.