You are here

public function DeveloperAppUITest::testAppDefaultProduct in Apigee Edge 8

Creates an app with the default product.

File

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

Class

DeveloperAppUITest
Developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

public function testAppDefaultProduct() {
  $this
    ->submitAdminForm([
    'multiple_products' => FALSE,
    'user_select' => FALSE,
    "default_api_product_multiple[{$this->products[0]->getName()}]" => $this->products[0]
      ->getName(),
  ]);
  $asserts = function () {
    $this
      ->assertSession()
      ->pageTextContains($this->products[0]
      ->label());
  };
  $this
    ->assertAppCrud(NULL, $asserts, NULL, $asserts);
}