mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
Merge pull request #198 from stfalcon-studio/master
add file insert method to base context Edit
This commit is contained in:
commit
6603689ea8
|
@ -233,4 +233,13 @@ class BaseFeatureContext extends BehatContext
|
|||
$oUser->setRating((int)$carmaPoints);
|
||||
$this->getEngine()->User_Update($oUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^I put the file "([^"]*)" to "([^"]*)"$/
|
||||
*/
|
||||
public function iPutTheFileTo($fileName, $path)
|
||||
{
|
||||
$fixturePath = realpath((dirname(__FILE__)) . "/../../../../");
|
||||
$this->getMinkContext()->attachFileToField($path, $fixturePath . $fileName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue