You are here

protected function DiffTestBase::setUp in Diff 8

Same name in this branch
  1. 8 tests/src/Functional/DiffTestBase.php \Drupal\Tests\diff\Functional\DiffTestBase::setUp()
  2. 8 tests/src/FunctionalJavascript/DiffTestBase.php \Drupal\Tests\diff\FunctionalJavascript\DiffTestBase::setUp()

Overrides BrowserTestBase::setUp

3 calls to DiffTestBase::setUp()
DiffAdminFormsTest::setUp in tests/src/Functional/DiffAdminFormsTest.php
DiffPluginTestBase::setUp in tests/src/Functional/DiffPluginTestBase.php
DiffRevisionContentModerationTest::setUp in tests/src/Functional/DiffRevisionContentModerationTest.php
3 methods override DiffTestBase::setUp()
DiffAdminFormsTest::setUp in tests/src/Functional/DiffAdminFormsTest.php
DiffPluginTestBase::setUp in tests/src/Functional/DiffPluginTestBase.php
DiffRevisionContentModerationTest::setUp in tests/src/Functional/DiffRevisionContentModerationTest.php

File

tests/src/Functional/DiffTestBase.php, line 46

Class

DiffTestBase
Base class for Diff web tests.

Namespace

Drupal\Tests\diff\Functional

Code

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();
}