lastdragon-ru/lara-asp-graphql-testing
Testing helpers for GraphQL in Laravel apps using lara-asp. Provides utilities and assertions to build requests, execute queries/mutations, and validate responses in automated tests, making GraphQL endpoint testing faster and more reliable.
Useful assertions for PHPUnit to check printed/exported type/queries and more with lastdragon-ru/lara-asp-graphql package
| Requirement | Constraint | Supported by |
|---|---|---|
| PHP | ^8.5 |
HEAD ⋯ 11.0.0 |
^8.4 |
HEAD ⋯ 10.0.0 |
|
^8.3 |
10.3.0 ⋯ 10.0.0 |
|
| PHPUnit | ^13.0.0 |
HEAD ⋯ 11.0.0 |
^12.0.0 |
10.3.0 ⋯ 10.0.0 |
|
^11.3.0 |
10.3.0 ⋯ 10.1.0 |
|
^11.2.0 |
10.0.0 |
[!NOTE]
The package intended to use in dev.
composer require --dev lastdragon-ru/lara-asp-graphql-testing
<?php declare(strict_types = 1);
namespace LastDragon_ru\LaraASP\GraphQL\Testing\Docs\Examples;
use LastDragon_ru\LaraASP\GraphQL\Testing\Assertions;
use PHPUnit\Framework\TestCase;
/**
* @internal
*/
abstract class Usage extends TestCase {
use Assertions;
}
assertGraphQLIntrospectionEqualsCompares default public schema (as the client sees it through introspection).
assertGraphQLSchemaEqualsCompares default internal schema (with all directives).
assertGraphQLSchemaNoBreakingChangesChecks that no breaking changes in the default internal schema (with all directives).
assertGraphQLSchemaNoDangerousChangesChecks that no dangerous changes in the default internal schema (with all directives).
assertGraphQLSchemaValidValidates default internal schema (with all directives). Faster than lighthouse:validate-schema command because loads only used directives.
Please use the main repository to report issues, send pull requests, or ask questions.
How can I help you explore Laravel packages today?