protected function DeveloperAppFieldTest::requiredFieldTest in Apigee Edge 8
Tests settings base fields required.
1 call to DeveloperAppFieldTest::requiredFieldTest()
- DeveloperAppFieldTest::testFieldableDeveloperApp in tests/
src/ Functional/ DeveloperAppFieldTest.php - Tests fieldable developer app entity.
File
- tests/
src/ Functional/ DeveloperAppFieldTest.php, line 406
Class
- DeveloperAppFieldTest
- Fieldable developer app test.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
protected function requiredFieldTest() {
// The form can be saved with default settings.
$this
->submitBaseFieldConfigForm();
// Move the callbackUrl to hidden.
$this
->submitFormDisplay([
'callbackUrl' => 'hidden',
]);
// The callbackUrl can't be required.
$this
->submitBaseFieldConfigForm(TRUE, TRUE, FALSE);
// Move back callbackUrl to visible.
$this
->submitFormDisplay([
'callbackUrl' => 'content',
]);
// The callbackUrl can be required.
$this
->submitBaseFieldConfigForm(TRUE, TRUE);
// The callbackUrl can't be hidden.
$this
->submitFormDisplay([
'callbackUrl' => 'hidden',
], FALSE);
// The callbackUrl is not required.
$this
->submitBaseFieldConfigForm(FALSE, FALSE);
}