Unverified Commit 84bd3594 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3159739 by jungle, Beakerboy, daffie: Avoid directly comparing string...

Issue #3159739 by jungle, Beakerboy, daffie: Avoid directly comparing string to blob in EntityDisplayTest

(cherry picked from commit 9346c2ff)
parent d4a43eb3
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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));
  }

  /**