File
-
src/
Tests/ AdvaggTestBase.php, line 52
Class
- AdvaggTestBase
- Base test class for Advagg test cases.
Namespace
Drupal\advagg\TestsCode
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();
}