protected function PageManagerAdminTest::doTestSelectionCriteriaWithAjax in Page Manager 8
Tests the AJAX form for Selection Criteria.
1 call to PageManagerAdminTest::doTestSelectionCriteriaWithAjax()
- PageManagerAdminTest::testAdmin in page_manager_ui/
src/ Tests/ PageManagerAdminTest.php - Tests the Page Manager admin UI.
File
- page_manager_ui/
src/ Tests/ PageManagerAdminTest.php, line 241 - Contains \Drupal\page_manager_ui\Tests\PageManagerAdminTest.
Class
- PageManagerAdminTest
- Tests the admin UI for page entities.
Namespace
Drupal\page_manager_ui\TestsCode
protected function doTestSelectionCriteriaWithAjax() {
$this
->drupalGet('admin/structure/page_manager/manage/foo/page_variant__foo-http_status_code-0__selection');
$edit = [
'conditions' => 'user_role',
];
$response = $this
->drupalPostAjaxForm(NULL, $edit, [
'add' => 'Add Condition',
]);
$this
->assertEqual($response[2]['dialogOptions']['title'], 'Configure Required Context');
}