protected function DeveloperAppUITestTrait::postEditAppForm in Apigee Edge 8
Submit developer app edit form.
Parameters
array $data: Form data.
string $app_name: App name.
\Drupal\user\UserInterface|null $account: Owner of the developer app.
1 call to DeveloperAppUITestTrait::postEditAppForm()
- DeveloperAppUITestTrait::assertAppCrud in tests/
src/ Functional/ DeveloperAppUITestTrait.php - Goes through a typical CRUD cycle for an app.
File
- tests/
src/ Functional/ DeveloperAppUITestTrait.php, line 138
Class
- DeveloperAppUITestTrait
- Contains re-usable components for developer app UI tests.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
protected function postEditAppForm(array $data, string $app_name, ?UserInterface $account = NULL) {
if ($account === NULL) {
$account = $this->account;
}
$this
->drupalPostForm("/user/{$account->id()}/apps/{$app_name}/edit", $data, 'Save');
}