/**
* Tests the JavaScript #states functionality of form elements.
*
* To avoid the large cost of a dataProvider in FunctionalJavascript tests,
* this is a single public test method that invokes a series of protected
* methods to do assertions on specific kinds of triggering elements.
*/ publicfunctiontestJavascriptStates(){ $this->doCheckboxTriggerTests(); $this->doCheckboxesTriggerTests(); $this->doTextfieldTriggerTests(); $this->doRadiosTriggerTests(); $this->doSelectTriggerTests(); $this->doMultipleTriggerTests(); $this->doNestedTriggerTests(); }
/**
* Tests states of elements triggered by a checkbox element.
*/ protectedfunctiondoCheckboxTriggerTests(){ $this->drupalGet('form-test/javascript-states-form'); $page = $this->getSession()->getPage();