function FormStateTest::testLoadIncludeNoName
Tests load include no name.
@legacy-covers ::loadInclude
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateTest.php, line 206
Class
Namespace
Drupal\Tests\Core\FormCode
public function testLoadIncludeNoName() : void {
$type = 'some_type';
$module = 'some_module';
$form_state = $this->getMockBuilder('Drupal\\Core\\Form\\FormState')
->onlyMethods([
'moduleLoadInclude',
])
->getMock();
$form_state->expects($this->once())
->method('moduleLoadInclude')
->with($module, $type, $module)
->willReturn(TRUE);
$this->assertTrue($form_state->loadInclude($module, $type));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.