Same name and namespace in other branches
  1. 8.x-1.x tests/src/FunctionalJavascript/ColorboxInlineJavascriptTest.php \Drupal\Tests\colorbox_inline\FunctionalJavascript\ColorboxInlineJavascriptTest::setUp() 1 comment

File

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

Class

ColorboxInlineJavascriptTest
Test that Colorbox Inline functions.

Namespace

Drupal\Tests\colorbox_inline\FunctionalJavascript

Code

protected function setUp() : void {
    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" href="#">USS Voyager</a></p>
                      <div class="test-src" style="display:none;">NCC-74656</div>',
                'format' => 'full_html',
            ],
        ],
    ]);
}