Loading core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php +0 −6 Original line number Diff line number Diff line Loading @@ -27,12 +27,6 @@ public function getFormId() { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { // In order to use WebTestBase::drupalPostAjaxForm() to POST from a link, // we need to have a dummy field we can set in // WebTestBase::drupalPostForm() else it won't submit anything. $form['textfield'] = [ '#type' => 'hidden', ]; $form['button1'] = [ '#type' => 'submit', '#name' => 'button1', Loading core/modules/system/tests/src/Functional/Ajax/FrameworkTest.php +0 −7 Original line number Diff line number Diff line Loading @@ -65,13 +65,6 @@ public function testOrder() { $expected_commands[3] = new AppendCommand('body', $js_footer_render_array); $expected_commands[4] = new HtmlCommand('body', 'Hello, world!'); // Load any page with at least one CSS file, at least one JavaScript file // and at least one #ajax-powered element. The latter is an assumption of // drupalPostAjaxForm(), the two former are assumptions of the Ajax // renderer. // @todo refactor AJAX Framework + tests to make less assumptions. $this->drupalGet('ajax_forms_test_lazy_load_form'); // Verify AJAX command order — this should always be the order: // 1. CSS files // 2. JavaScript files in the header Loading Loading
core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php +0 −6 Original line number Diff line number Diff line Loading @@ -27,12 +27,6 @@ public function getFormId() { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { // In order to use WebTestBase::drupalPostAjaxForm() to POST from a link, // we need to have a dummy field we can set in // WebTestBase::drupalPostForm() else it won't submit anything. $form['textfield'] = [ '#type' => 'hidden', ]; $form['button1'] = [ '#type' => 'submit', '#name' => 'button1', Loading
core/modules/system/tests/src/Functional/Ajax/FrameworkTest.php +0 −7 Original line number Diff line number Diff line Loading @@ -65,13 +65,6 @@ public function testOrder() { $expected_commands[3] = new AppendCommand('body', $js_footer_render_array); $expected_commands[4] = new HtmlCommand('body', 'Hello, world!'); // Load any page with at least one CSS file, at least one JavaScript file // and at least one #ajax-powered element. The latter is an assumption of // drupalPostAjaxForm(), the two former are assumptions of the Ajax // renderer. // @todo refactor AJAX Framework + tests to make less assumptions. $this->drupalGet('ajax_forms_test_lazy_load_form'); // Verify AJAX command order — this should always be the order: // 1. CSS files // 2. JavaScript files in the header Loading