/** * @param string $not * @param string $actionName * @param string $element * * @throws ExpectationException * * @Given /^I should( not)? be able to view the "([^"]*)" action of the row which contains "([^"]*)"$/ */ public function iViewTheActionOfTheRowWhichContains($not, $actionName, $element) { $action = ucfirst(strtolower($actionName)); if ($not === $this->datagrid->findAction($element, $action)) { throw $this->createExpectationException(sprintf('Expecting action "%s" on the row which containe "%s", but none found.', $action, $element)); } }