You are here

protected function DeveloperAppUITest::setUp in Apigee Edge 8

Same name in this branch
  1. 8 tests/src/Functional/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\Functional\DeveloperAppUITest::setUp()
  2. 8 tests/src/FunctionalJavascript/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\FunctionalJavascript\DeveloperAppUITest::setUp()

Overrides ApigeeEdgeFunctionalTestBase::setUp

File

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

Class

DeveloperAppUITest
Developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

protected function setUp() {
  parent::setUp();

  // We can not override self::$modules in this trait because that would
  // conflict with \Drupal\Tests\BrowserTestBase::$modules where both
  // traits are being used.
  $this
    ->installExtraModules([
    'block',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('system_breadcrumb_block');
  $this
    ->drupalPlaceBlock('system_menu_block:account');
  $config = $this
    ->config('apigee_edge.dangerzone');
  $config
    ->set('skip_developer_app_settings_validation', TRUE);
  $config
    ->save();
  $this->products[] = $this
    ->createProduct();
  $this->account = $this
    ->createAccount(static::$permissions);
  $this
    ->drupalLogin($this->account);
}