.../tests/src/Functional/EntityResource/EntityResourceTestBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 238a03f..22440ef 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -1244,7 +1244,7 @@ public function testDelete() { $this->initAuthentication(); $has_canonical_url = $this->entity->hasLinkTemplate('canonical'); // @todo Remove in https://www.drupal.org/node/2825487. - $has_canonical_url = $has_canonical_url && !static::$entityTypeId === 'file'; + $has_canonical_url = $has_canonical_url && static::$entityTypeId !== 'file'; // The URL and Guzzle request options that will be used in this test. The // request options will be modified/expanded throughout this test: @@ -1361,7 +1361,7 @@ protected function assertNormalizationEdgeCases($method, Url $url, array $reques protected function getEntityResourceUrl() { $has_canonical_url = $this->entity->hasLinkTemplate('canonical'); // @todo Remove in https://www.drupal.org/node/2825487. - $has_canonical_url = $has_canonical_url && !static::$entityTypeId === 'file'; + $has_canonical_url = $has_canonical_url && static::$entityTypeId !== 'file'; // Note that the 'canonical' link relation type must be specified explicitly // in the call to ::toUrl(). 'canonical' is the default for // \Drupal\Core\Entity\Entity::toUrl(), but ConfigEntityBase overrides this. @@ -1497,7 +1497,7 @@ protected function assert406Response(ResponseInterface $response) { protected function assertResourceNotAvailable(Url $url, array $request_options) { $has_canonical_url = $this->entity->hasLinkTemplate('canonical'); // @todo Remove in https://www.drupal.org/node/2825487. - $has_canonical_url = $has_canonical_url && !static::$entityTypeId === 'file'; + $has_canonical_url = $has_canonical_url && static::$entityTypeId !== 'file'; $response = $this->request('GET', $url, $request_options); if (!$has_canonical_url) { $this->assertSame(404, $response->getStatusCode());