You are here

public function StackTest::testStack in Responsive Tables Filter 8

Tests the responsive_tables_filter Stack (default) mode.

File

tests/src/Functional/StackTest.php, line 37
Contains \Drupal\responsive_tables_filter\Tests\FilterTest.

Class

StackTest
Tests the responsive_tables_filter filter.

Namespace

Drupal\Tests\responsive_tables_filter\Functional

Code

public function testStack() {
  foreach (self::$data as $input => $output) {
    $settings = [];
    $settings['type'] = 'page';
    $settings['title'] = 'Test Tablesaw Stack Only mode';
    $settings['body'] = [
      'value' => $input,
      'format' => 'custom_format',
    ];
    $node = $this
      ->drupalCreateNode($settings);
    $this
      ->drupalGet('node/' . $node
      ->id());
    $this
      ->assertRaw($output);
  }
}