mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +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);
|
$oUser->setRating((int)$carmaPoints);
|
||||||
$this->getEngine()->User_Update($oUser);
|
$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