1
0
Fork 0
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:
Mzhelskiy Maxim 2012-12-20 11:35:27 -08:00
commit 6603689ea8

View file

@ -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);
}
}