Commit 422919e9 authored by catch's avatar catch
Browse files

Issue #3185653 by longwave, anmolgoyal74, jibran, Kristen Pol: Remove mention...

Issue #3185653 by longwave, anmolgoyal74, jibran, Kristen Pol: Remove mention of drupalPostAjaxForm() from comments
parent e85f22ac
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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',
+0 −7
Original line number Diff line number Diff line
@@ -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