diff --git a/tests/src/Functional/InternalEntitiesTest.php b/tests/src/Functional/InternalEntitiesTest.php index aa3085e..db8c2ce 100644 --- a/tests/src/Functional/InternalEntitiesTest.php +++ b/tests/src/Functional/InternalEntitiesTest.php @@ -108,7 +108,7 @@ class InternalEntitiesTest extends BrowserTestBase { foreach ($paths as $type => $path) { $response = $this->drupalGet($path, [], ['Accept' => 'application/vnd.api+json']); $decoded = Json::decode($response); - $this->assertEquals( + $this->assertSame( 404, $decoded['errors'][0]['status'], "The '{$type}' route ({$path}) should not be available for internal resource types.'" diff --git a/tests/src/Kernel/Controller/EntityResourceTest.php b/tests/src/Kernel/Controller/EntityResourceTest.php index b753dd0..7242c91 100644 --- a/tests/src/Kernel/Controller/EntityResourceTest.php +++ b/tests/src/Kernel/Controller/EntityResourceTest.php @@ -951,7 +951,7 @@ class EntityResourceTest extends JsonapiKernelTestBase { * @return \Drupal\jsonapi\Controller\EntityResource * The resource. */ - protected function buildEntityResource($entity_type_id, $bundle, $relatable_resource_types = [], $internal = FALSE) { + protected function buildEntityResource($entity_type_id, $bundle, array $relatable_resource_types = [], $internal = FALSE) { // The fake route. $route = new Route(NULL, [], [ '_entity_type' => $entity_type_id,