public function EntityFormTest::testSaveSettingsEmptyValue in Acquia Content Hub 8
Tests the saveSettings() method, has empty form value.
@covers ::saveSettings
File
- tests/
src/ Unit/ Form/ EntityFormTest.php, line 235
Class
- EntityFormTest
- PHPUnit test for the EntityForm class.
Namespace
Drupal\Tests\acquia_contenthub\Unit\FormCode
public function testSaveSettingsEmptyValue() {
$form_state = $this
->createMock('Drupal\\Core\\Form\\FormState');
$form_state
->expects($this
->once())
->method('isValueEmpty')
->willReturn(TRUE);
$form_state
->expects($this
->never())
->method('getFormObject');
$this->entityForm
->saveSettings($form_state);
}