public function ColumnToggleTest::testColumnToggle in Responsive Tables Filter 8
Tests the responsive_tables_filter Column Toggle mode.
File
- tests/
src/ Functional/ ColumnToggleTest.php, line 37 - Contains \Drupal\responsive_tables_filter\Tests\FilterTest.
Class
- ColumnToggleTest
- Tests the responsive_tables_filter filter.
Namespace
Drupal\Tests\responsive_tables_filter\FunctionalCode
public function testColumnToggle() {
foreach (self::$data as $input => $output) {
$settings = [];
$settings['type'] = 'page';
$settings['title'] = 'Test Tablesaw Column Toggle mode';
$settings['body'] = [
'value' => $input,
'format' => 'custom_format',
];
$node = $this
->drupalCreateNode($settings);
$this
->drupalGet('node/' . $node
->id());
$this
->assertRaw($output);
}
}