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

(cherry picked from commit 9d8849513f)
merge-requests/64/head
Alex Pott 2020-05-09 11:02:05 +01:00
parent e07ea17a2d
commit 3d3aab2e7f
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 3 additions and 4 deletions

View File

@ -119,14 +119,13 @@ class CommentIntegrationTest extends KernelTestBase {
'@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();