diff --git a/core/modules/responsive_image/src/Tests/Update/ResponsiveImageUpdateTest.php b/core/modules/responsive_image/src/Tests/Update/ResponsiveImageUpdateTest.php index 044d2dd..9427d47 100644 --- a/core/modules/responsive_image/src/Tests/Update/ResponsiveImageUpdateTest.php +++ b/core/modules/responsive_image/src/Tests/Update/ResponsiveImageUpdateTest.php @@ -1,10 +1,5 @@ assertNotNull($display = EntityViewDisplay::load('entity_test.entity_test.default')); $this->assertTrue($display->getComponent('bar')); - $this->assertFalse(array_key_exists('bar', $display->get('hidden'))); + $this->assertArrayNotHasKey('bar', $display->get('hidden')); // Delete the responsive image style. ResponsiveImageStyle::load('foo')->delete(); @@ -71,7 +66,7 @@ public function testEntityViewDisplayDependency() { $this->assertNotNull($display = EntityViewDisplay::load('entity_test.entity_test.default')); // Check that the 'foo' field was disabled. $this->assertNull($display->getComponent('bar')); - $this->assertTrue(array_key_exists('bar', $display->get('hidden'))); + $this->assertArrayHasKey('bar', $display->get('hidden')); } }