Skip to content

Commit 2184093

Browse files
committed
Test is macroable
1 parent a289e46 commit 2184093

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Unit/GraphQLTest.php

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use GraphQL\Type\Definition\ObjectType;
99
use GraphQL\Type\Definition\Type;
1010
use GraphQL\Type\Schema;
11+
use Illuminate\Support\Traits\Macroable;
1112
use Rebing\GraphQL\Error\ValidationError;
1213
use Rebing\GraphQL\Exception\SchemaNotFound;
1314
use Rebing\GraphQL\Exception\TypeNotFound;
@@ -395,4 +396,9 @@ public function testAddSchemaObjectAndExecuteQueryWithRootValue(): void
395396

396397
$this->assertSame($expectedResult, $result);
397398
}
399+
400+
public function testIsMacroable(): void
401+
{
402+
$this->assertContains(Macroable::class, class_uses_recursive(GraphQL::getFacadeRoot()));
403+
}
398404
}

0 commit comments

Comments
 (0)