Skip to content

Commit

Permalink
Issue #3134475 by Beakerboy, daffie: Avoid directly comparing string …
Browse files Browse the repository at this point in the history
…to blob in CommentIntegrationTest

(cherry picked from commit 9d8849513f60b6d374d37b6390bca0f8ca3a56a6)
  • Loading branch information
alexpott committed May 9, 2020
1 parent f3e6be0 commit 63dea4c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/comment/tests/src/Kernel/CommentIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 63dea4c

Please sign in to comment.