protected function RulesDebugLogTest::setUp in Rules 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ RulesDebugLogTest.php, line 29
Class
- RulesDebugLogTest
- Tests that the Rules UI pages are reachable.
Namespace
Drupal\Tests\rules\FunctionalCode
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();
}