public function FormStateTest::setUp in Little helpers 7.2
Same name and namespace in other branches
- 7 tests/Webform/FormStateTest.php \Drupal\little_helpers\Test\Webform\FormStateTest::setUp()
Enable dependencies, load includes and create a node stub.
File
- tests/
Webform/ FormStateTest.php, line 31
Class
- FormStateTest
- Test creating a submission object from various form states.
Namespace
Drupal\little_helpers\Test\WebformCode
public function setUp() : void {
// Enable any modules required for the test. This should be an array of
// module names.
parent::setUp(array(
'little_helpers',
));
$this
->nodeStub();
module_load_include('submissions.inc', 'webform', 'includes/webform');
}