Skip to content

Commit

Permalink
test: fix bad type
Browse files Browse the repository at this point in the history
  • Loading branch information
damienwebdev committed Mar 19, 2024
1 parent 721f699 commit 95e3adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Test/Integration/UniqueExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use GraphQL\Executor\Promise\Adapter\SyncPromiseAdapter;
use GraphQL\Language\AST\DocumentNode;
use GraphQL\Language\AST\NodeList;
use GraphQL\Type\Schema;
use Graycore\GraphQlIntrospectionCache\Executor\ReferenceExecutor;
use Magento\TestFramework\ObjectManager;
Expand All @@ -17,8 +18,9 @@ public function testThatCreatedExecutorsAreUnique()

$promiseAdapter = $om->create(SyncPromiseAdapter::class);
$schema = $om->create(Schema::class, ['config' => []]);
/** @var DocumentNode */
$documentNode = $om->create(DocumentNode::class, ['vars' => []]);
$documentNode->definitions = [];
$documentNode->definitions = new NodeList([]);

$first = ReferenceExecutor::create(
$promiseAdapter,
Expand Down

0 comments on commit 95e3adf

Please sign in to comment.