You are here

public function DeveloperAppUITest::testAssociateApps in Apigee Edge 8

Tests the user_select checkbox on the admin form.

File

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

Class

DeveloperAppUITest
Developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

public function testAssociateApps() {
  $this
    ->submitAdminForm([
    'user_select' => FALSE,
    "default_api_product_multiple[{$this->products[0]->getName()}]" => $this->products[0]
      ->getName(),
  ]);
  $this
    ->gotoCreateAppForm();
  $this
    ->assertSession()
    ->pageTextNotContains('APIs');
  $this
    ->submitAdminForm();
  $this
    ->gotoCreateAppForm();
  $this
    ->assertSession()
    ->pageTextContains('APIs');
}