public function DeveloperAppUITest::testDeveloperAppLabel in Apigee Edge 8
Tests the developer app label modification.
File
- tests/
src/ Functional/ DeveloperAppUITest.php, line 99
Class
- DeveloperAppUITest
- Developer app UI tests.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
public function testDeveloperAppLabel() {
$this
->changeEntityAliasesAndValidate('developer_app', 'apigee_edge.settings.developer_app');
$type = \Drupal::entityTypeManager()
->getDefinition('developer_app');
$this
->drupalGet(Url::fromRoute('entity.developer_app.collection_by_developer', [
'user' => $this->account
->id(),
]));
// Assert "Apps" page title is changed.
$this
->assertSession()
->elementContains('css', 'title', $type
->getPluralLabel());
// Assert link to "Apps" is changed.
$this
->assertLink($type
->getPluralLabel());
}