protected function DeveloperAppFieldTest::credentialsViewTest in Apigee Edge 8
Tests showing and hiding credentials on the developer app view.
1 call to DeveloperAppFieldTest::credentialsViewTest()
- DeveloperAppFieldTest::testFieldableDeveloperApp in tests/
src/ Functional/ DeveloperAppFieldTest.php - Tests fieldable developer app entity.
File
- tests/
src/ Functional/ DeveloperAppFieldTest.php, line 455
Class
- DeveloperAppFieldTest
- Fieldable developer app test.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
protected function credentialsViewTest() {
$assert = function (bool $visible = TRUE) {
$this
->assertFieldVisibleOnEntityDisplay($this->developerApp
->getName(), 'Credential', 'Key Status', $visible);
};
$this
->submitViewDisplay([
'credentials' => 'hidden',
]);
$assert(FALSE);
$this
->submitViewDisplay([
'credentials' => 'content',
]);
$assert(TRUE);
}