public function FormStateTest::testLoadInclude in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\FormStateTest::testLoadInclude()
- 10 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\FormStateTest::testLoadInclude()
@covers ::loadInclude
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateTest.php, line 179 - Contains \Drupal\Tests\Core\Form\FormStateTest.
Class
- FormStateTest
- @coversDefaultClass \Drupal\Core\Form\FormState
Namespace
Drupal\Tests\Core\FormCode
public function testLoadInclude() {
$type = 'some_type';
$module = 'some_module';
$name = 'some_name';
$form_state = $this
->getMockBuilder('Drupal\\Core\\Form\\FormState')
->setMethods([
'moduleLoadInclude',
])
->getMock();
$form_state
->expects($this
->once())
->method('moduleLoadInclude')
->with($module, $type, $name)
->willReturn(TRUE);
$this
->assertTrue($form_state
->loadInclude($module, $type, $name));
}