コード例 #1
0
 /**
  * @param string $not
  * @param string $viewLabel
  *
  * @Then /^I should( not)? see the "([^"]*)" view$/
  *
  * @throws ExpectationException
  */
 public function iShouldSeeTheView($not, $viewLabel)
 {
     $view = $this->datagrid->findView($viewLabel);
     if ('' !== $not && null !== $view || '' === $not && null === $view) {
         throw $this->createExpectationException(sprintf('View "%s" should%s be available.', $viewLabel, $not));
     }
 }