Fichier

src/Tests/AdvaggTestBase.php, line 52

Classe

AdvaggTestBase
Base test class for Advagg test cases.

Namespace

Drupal\advagg\Tests

Code

protected function setUp() {
    parent::setUp();
    $this->user = $this->drupalCreateUser([
        'administer site configuration',
    ]);
    $this->drupalLogin($this->user);
    $this->config = \Drupal::configFactory()->getEditable('advagg.settings');
    // Enable aggregation.
    $this->systemConfig = \Drupal::configFactory()->getEditable('system.performance');
    $this->systemConfig
        ->set('css.preprocess', TRUE)
        ->set('js.preprocess', TRUE)
        ->save();
}