protected function DeveloperAppFieldTest::submitViewDisplay in Apigee Edge 8
Saves the developer app's view display settings.
Parameters
array $region_overrides: Which field's regions should be changed. Key is the field name, value is the region.
2 calls to DeveloperAppFieldTest::submitViewDisplay()
- DeveloperAppFieldTest::credentialsViewTest in tests/
src/ Functional/ DeveloperAppFieldTest.php - Tests showing and hiding credentials on the developer app view.
- DeveloperAppFieldTest::viewRegionTest in tests/
src/ Functional/ DeveloperAppFieldTest.php - Tests the view regions.
File
- tests/
src/ Functional/ DeveloperAppFieldTest.php, line 521
Class
- DeveloperAppFieldTest
- Fieldable developer app test.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
protected function submitViewDisplay(array $region_overrides = []) {
$edit = [];
foreach ($region_overrides as $field => $region) {
$edit["fields[{$field}][region]"] = $region;
}
$this
->drupalPostForm(Url::fromRoute('entity.entity_view_display.developer_app.default'), $edit, 'Save');
$this
->assertSession()
->pageTextContains('Your settings have been saved.');
}