You are here

AdvaggFunctionalTestBase.php in Advanced CSS/JS Aggregation 8.3

Same filename and directory in other branches
  1. 8.4 tests/src/Functional/AdvaggFunctionalTestBase.php

File

tests/src/Functional/AdvaggFunctionalTestBase.php
View source
<?php

namespace Drupal\Tests\advagg\functional;

use Drupal\Tests\BrowserTestBase;

/**
 * @defgroup advagg_tests Test Suit
 *
 * @{
 * The automated test suit for Advanced Aggregates.
 *
 * @}
 */

/**
 * Base test class for Advagg test cases.
 */
abstract class AdvaggFunctionalTestBase extends BrowserTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'advagg',
  ];

  /**
   * A user with permission to administer site configuration.
   *
   * @var \Drupal\user\UserInterface
   */
  protected $user;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->user = $this
      ->drupalCreateUser([
      'administer site configuration',
      'access administration pages',
    ]);
    $this
      ->drupalLogin($this->user);
  }

}

Classes

Namesort descending Description
AdvaggFunctionalTestBase Base test class for Advagg test cases.