function RulesDebugLogTest::setUp

Overrides BrowserTestBase::setUp

File

tests/src/Functional/RulesDebugLogTest.php, line 27

Class

RulesDebugLogTest
Tests that the Rules UI pages are reachable.

Namespace

Drupal\Tests\rules\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Testing profile doesn't include a 'page' content type.
    // We will need this to test bundle-specific entity CRUD events.
    $this->createContentType([
        'type' => 'page',
        'name' => 'Basic page',
    ]);
    // Turn on debug logging.
    $this->config('rules.settings')
        ->set('debug_log.enabled', TRUE)
        ->set('debug_log.log_level', 'debug')
        ->save();
}