public function DisplayTest::testAddDisplay in Drupal 8
Same name in this branch
- 8 core/modules/views_ui/tests/src/Functional/DisplayTest.php \Drupal\Tests\views_ui\Functional\DisplayTest::testAddDisplay()
- 8 core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php \Drupal\Tests\views_ui\FunctionalJavascript\DisplayTest::testAddDisplay()
Same name and namespace in other branches
- 9 core/modules/views_ui/tests/src/Functional/DisplayTest.php \Drupal\Tests\views_ui\Functional\DisplayTest::testAddDisplay()
- 10 core/modules/views_ui/tests/src/Functional/DisplayTest.php \Drupal\Tests\views_ui\Functional\DisplayTest::testAddDisplay()
Tests adding a display.
File
- core/
modules/ views_ui/ tests/ src/ Functional/ DisplayTest.php, line 38
Class
- DisplayTest
- Tests the display UI.
Namespace
Drupal\Tests\views_ui\FunctionalCode
public function testAddDisplay() {
$view = $this
->randomView();
$this
->assertNoText('Block');
$this
->assertNoText('Block 2');
$this
->drupalPostForm(NULL, [], t('Add @display', [
'@display' => 'Block',
]));
$this
->assertText('Block');
$this
->assertNoText('Block 2');
}