Unverified Commit 3d3aab2e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3134475 by Beakerboy, daffie: Avoid directly comparing string to blob...

Issue #3134475 by Beakerboy, daffie: Avoid directly comparing string to blob in CommentIntegrationTest

(cherry picked from commit 9d884951)
parent e07ea17a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -119,14 +119,13 @@ public function testViewMode() {
      '@display' => EntityViewMode::load("comment.$mode")->label(),
      '@mode' => $mode,
    ];
    $logged = (bool) Database::getConnection()->select('watchdog')
      ->fields('watchdog', ['wid'])
    $logged = Database::getConnection()->select('watchdog')
      ->fields('watchdog', ['variables'])
      ->condition('type', 'system')
      ->condition('message', "View display '@id': Comment field formatter '@name' was disabled because it is using the comment view display '@display' (@mode) that was just disabled.")
      ->condition('variables', serialize($arguments))
      ->execute()
      ->fetchField();
    $this->assertTrue($logged);
    $this->assertEquals(serialize($arguments), $logged);

    // Re-enable the comment view display.
    EntityViewDisplay::load($comment_display_id)->setStatus(TRUE)->save();