Commit 4b2e1f4f authored by Ide Braakman's avatar Ide Braakman
Browse files

Issue #3303855 by idebr: Fix deprecations triggered in automated tests

parent ba50dad2
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -13,15 +13,9 @@ use Drupal\user\Entity\Role;
class AjaxCommentsSettingsFormTest extends CommentTestBase {

  /**
   * Modules to install.
   *
   * @var array
   * {@inheritdoc}
   */
  public static $modules = [
    'system',
    'block',
    'comment',
    'node',
  protected static $modules = [
    'ajax_comments',
  ];

@@ -52,8 +46,8 @@ class AjaxCommentsSettingsFormTest extends CommentTestBase {
    // Check that the page loads.
    $this->assertSession()->statusCodeEquals(200);
    $this->assertSession()->pageTextContains(t("Enable Ajax Comments on the comment fields' display settings"));
    $this->clickLink(t('Content: Article'));
    $this->assertSession()->addressEquals('/admin/structure/types/manage/article/display', [], 'There is a link to the entity view display form for articles.');
    $this->clickLink('Content: Article');
    $this->assertSession()->addressEquals('/admin/structure/types/manage/article/display');
    $this->assertSession()->statusCodeEquals(200);

    // Open comment settings.
@@ -61,7 +55,7 @@ class AjaxCommentsSettingsFormTest extends CommentTestBase {
    // Disable ajax comments.
    $this->submitForm(['fields[comment][settings_edit_form][third_party_settings][ajax_comments][enable_ajax_comments]' => '0'], 'comment_plugin_settings_update');
    // Save display mode.
    $this->submitForm([], t('Save'));
    $this->submitForm([], 'Save');
    $this->assertSession()->statusCodeEquals(200);
  }

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class AjaxCommentsFunctionalTest extends WebDriverTestBase {
  /**
   * {@inheritdoc}
   */
  public static $modules = [
  protected static $modules = [
    'system',
    'ajax_comments',
    'node',