You are here

protected function DeveloperAppUITestTrait::postCreateAppForm in Apigee Edge 8

Posts the create app form.

Parameters

array $data: Data to post.

\Drupal\user\UserInterface|null $account: Owner of the form.

8 calls to DeveloperAppUITestTrait::postCreateAppForm()
DeveloperAppUITest::testCreateAndDeleteApp in tests/src/Functional/DeveloperAppUITest.php
Creates and deletes an app.
DeveloperAppUITest::testCreateAndListApp in tests/src/Functional/DeveloperAppUITest.php
Creates an app and tests if it is in the list.
DeveloperAppUITest::testCreateAppWithModifiedCredentialLifetime in tests/src/Functional/DeveloperAppUITest.php
Tests app creation with modified credential lifetime.
DeveloperAppUITest::testCreateDuplicateApps in tests/src/Functional/DeveloperAppUITest.php
Tests that apps with the same name and developer can't be created.
DeveloperAppUITest::testFieldValidationConstraints in tests/src/Functional/DeveloperAppUITest.php
Tests that field validation constraints are executed on form save.

... See full list

File

tests/src/Functional/DeveloperAppUITestTrait.php, line 113

Class

DeveloperAppUITestTrait
Contains re-usable components for developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

protected function postCreateAppForm(array $data, ?UserInterface $account = NULL) {
  if ($account === NULL) {
    $account = $this->account;
  }
  $this
    ->drupalPostForm(Url::fromRoute('entity.developer_app.add_form_for_developer', [
    'user' => $account
      ->id(),
  ]), $data, 'Add app');
}