I have recently begun trying to use behat for Drupal when I ran across this project which, in theory, will meet my Drupal testing needs. However, I am trying to access the Mink's fillfield() function. It appears that it should be inherited from the RawDrupalContext but I get "PHP Fatal error: Call to undefined method FeatureContext::fillfield()..." when I try to run it. I tried including various Use statements to no avail. What am I missing?

Comments

zkent’s picture

C'mon help a guy out. I keep running into this issue and I want to keep using this code.

Found it:

$this->getSession()->getPage()->fillField()

zkent’s picture

Status: Active » Closed (works as designed)
Issue tags: +mink, +features, +Context
jhedstrom’s picture

Glad you figured it out!