You are here

protected function ColorboxInlineJavascriptTest::setUp in Colorbox Inline 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/ColorboxInlineJavascriptTest.php, line 44

Class

ColorboxInlineJavascriptTest
Test that Colorbox Inline functions.

Namespace

Drupal\Tests\colorbox_inline\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createContentType([
    'type' => 'page',
  ]);
  FilterFormat::create([
    'format' => 'full_html',
    'name' => 'Full HTML',
  ])
    ->save();
  $this->node = $this
    ->createNode([
    'body' => [
      [
        'value' => '<p><a data-colorbox-inline=".test-src">USS Voyager</a></p>
                      <div class="test-src">NCC-74656</div>',
        'format' => 'full_html',
      ],
    ],
  ]);
}