Unverified Commit 9d884951 authored by alexpott's avatar alexpott

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

Issue #3134475 by Beakerboy, daffie: Avoid directly comparing string to blob in CommentIntegrationTest
parent 7255efdd
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment