3 namespace Drupal\advagg\Tests;
5 use Drupal\simpletest\WebTestBase;
8 * @defgroup advagg_tests Test Suit
11 * The automated test suit for Advanced Aggregates.
17 * Base test class for Advagg test cases.
19 abstract class AdvaggTestBase extends WebTestBase {
26 public static $modules = ['advagg'];
29 * A user with permission to administer site configuration.
31 * @var \Drupal\user\UserInterface
36 * Editable Advagg configuration.
38 * @var \Drupal\Core\Config\Config
43 * Editable system configuration.
45 * @var \Drupal\Core\Config\Config
47 protected $systemConfig;
52 protected function setUp() {
54 $this->user = $this->drupalCreateUser(['administer site configuration']);
55 $this->drupalLogin($this->user);
56 $this->config = \Drupal::configFactory()->getEditable('advagg.settings');
58 // Enable aggregation.
59 $this->systemConfig = \Drupal::configFactory()->getEditable('system.performance');
60 $this->systemConfig->set('css.preprocess', TRUE)
61 ->set('js.preprocess', TRUE)