We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6986321 commit eb7cfacCopy full SHA for eb7cfac
src/GraphQl/Tests/State/Provider/ReadProviderTest.php
@@ -39,10 +39,15 @@ public function testProvide(): void
39
40
/**
41
* Tests that provider returns null if resource is not found.
42
+ *
43
* @see https://github.com/api-platform/core/issues/6072
44
*/
45
public function testProvideNotExistedResource(): void
46
{
47
+ if (!class_exists('\ApiPlatform\Exception\ItemNotFoundException')) {
48
+ class_alias('\ApiPlatform\Metadata\Exception\ItemNotFoundException', '\ApiPlatform\Exception\ItemNotFoundException');
49
+ }
50
+
51
$context = ['args' => ['id' => '/dummy/1']];
52
$operation = new Query(class: 'dummy');
53
$decorated = $this->createMock(ProviderInterface::class);
0 commit comments