Skip to content
Snippets Groups Projects

Resolve #3419621 "Typeerror inarray argument 11"

Closes #3419621

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
60 [
61 ClaroPreRender::class,
62 'tablePositionSticky',
63 ],
64 ],
65 ];
66
67 try {
68 $renderedTable = \Drupal::service('renderer')->renderRoot($table);
69
70 // Confirm that table is rendered.
71 $this->assertStringContainsString('class="class"', $renderedTable);
72 }
73 catch (\Error $e) {
74 $this->fail('PHP Error was thrown.');
75 }
  • Comment on lines +67 to +75
    Suggested change
    Applied
    67 try {
    68 $renderedTable = \Drupal::service('renderer')->renderRoot($table);
    69
    70 // Confirm that table is rendered.
    71 $this->assertStringContainsString('class="class"', $renderedTable);
    72 }
    73 catch (\Error $e) {
    74 $this->fail('PHP Error was thrown.');
    75 }
    67 $renderedTable = \Drupal::service('renderer')->renderRoot($table);
    68
    69 // Confirm that table is rendered.
    70 $this->assertStringContainsString('class="class"', $renderedTable);

    There's no need to catch the error - the test will fail if an exception is thrown or an error is triggered.

  • You are right. The test will fail but with interruption of all other tests in the queue. With catching the error only this particular test will fail.

  • Pamela Barone changed this line in version 4 of the diff

    changed this line in version 4 of the diff

  • Please register or sign in to reply
  • Dmitry Buriak added 1 commit

    added 1 commit

    • f3403d82 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Pamela Barone added 1 commit

    added 1 commit

    • df310f33 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Stephen Mustgrave added 552 commits

    added 552 commits

    • df310f33...c0a39c90 - 551 commits from branch project:11.x
    • f1bb518d - Merge branch '11.x' of git.drupal.org:project/drupal into 3419621-typeerror-inarray-argument-11

    Compare with previous version

  • Please register or sign in to reply
    Loading