Skip to content

Commit

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

(cherry picked from commit 9346c2ff9be8d3a4bc4696151fc1c2a0ff324970)
  • Loading branch information
alexpott committed Jul 23, 2020
1 parent 14ec70a commit 2820ca6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,14 +638,13 @@ public function testComponentDependencies() {
$this->assertTrue($form_display->get('hidden')[$field_name]);
// The correct warning message has been logged.
$arguments = ['@display' => (string) t('Entity form display'), '@id' => $form_display->id(), '@name' => $field_name];
$logged = (bool) Database::getConnection()->select('watchdog', 'w')
->fields('w', ['wid'])
$variables = Database::getConnection()->select('watchdog', 'w')
->fields('w', ['variables'])
->condition('type', 'system')
->condition('message', "@display '@id': Component '@name' was disabled because its settings depend on removed dependencies.")
->condition('variables', serialize($arguments))
->execute()
->fetchAll();
$this->assertTrue($logged);
->fetchField();
$this->assertEquals($arguments, unserialize($variables));
}

/**
Expand Down

0 comments on commit 2820ca6

Please sign in to comment.