protected function DiffTestBase::setUp in Diff 8
Same name in this branch
- 8 tests/src/Functional/DiffTestBase.php \Drupal\Tests\diff\Functional\DiffTestBase::setUp()
- 8 tests/src/FunctionalJavascript/DiffTestBase.php \Drupal\Tests\diff\FunctionalJavascript\DiffTestBase::setUp()
Overrides BrowserTestBase::setUp
1 call to DiffTestBase::setUp()
- DiffLocaleTest::setUp in tests/
src/ FunctionalJavascript/ DiffLocaleTest.php
1 method overrides DiffTestBase::setUp()
- DiffLocaleTest::setUp in tests/
src/ FunctionalJavascript/ DiffLocaleTest.php
File
- tests/
src/ FunctionalJavascript/ DiffTestBase.php, line 46
Class
- DiffTestBase
- Base class for Diff web tests.
Namespace
Drupal\Tests\diff\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create the Article content type.
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
// Place the blocks that Diff module uses.
$this
->drupalPlaceBlock('local_tasks_block');
$this
->drupalPlaceBlock('local_actions_block');
// Make sure HTML Diff is disabled.
$this
->config('diff.settings')
->set('general_settings.layout_plugins.visual_inline.enabled', FALSE)
->save();
}