You are here

public function DeveloperAppUITest::testCreateAndListApp in Apigee Edge 8

Creates an app and tests if it is in the list.

File

tests/src/Functional/DeveloperAppUITest.php, line 132

Class

DeveloperAppUITest
Developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

public function testCreateAndListApp() {
  $name = strtolower($this
    ->randomMachineName());
  $this
    ->postCreateAppForm([
    'name' => $name,
    'displayName[0][value]' => $name,
    "api_products[{$this->products[0]->getName()}]" => $this->products[0]
      ->getName(),
  ]);
  $this
    ->assertSession()
    ->pageTextContains($name);
}