lastdragon-ru / lara-asp-graphql-testing
Useful assertions for PHPUnit to check printed/exported type/queries and more.
Installs: 0
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/lastdragon-ru/lara-asp-graphql-testing
Requires
- php: ^8.3|^8.4
- ext-mbstring: *
- illuminate/contracts: ^12.0.1
- illuminate/filesystem: ^12.0.1
- lastdragon-ru/graphql-printer: 10.0.0
- lastdragon-ru/phpunit-graphql: 10.0.0
- nuwave/lighthouse: ^6.54.0
- phpunit/phpunit: ^11.2.0|^12.0.0
- symfony/polyfill-php84: ^1.31
- webonyx/graphql-php: ^15.4.0
Requires (Dev)
- illuminate/database: ^12.0.1
- illuminate/support: ^12.0.1
- lastdragon-ru/lara-asp-core: 10.0.0
- lastdragon-ru/lara-asp-graphql: 10.0.0
- lastdragon-ru/lara-asp-testing: 10.0.0
- lastdragon-ru/phpunit-extensions: 10.0.0
- orchestra/testbench: ^10.0.0
Conflicts
- thecodingmachine/safe: <3.0.0
README
Useful assertions for PHPUnit to check printed/exported type/queries and more with lastdragon-ru/lara-asp-graphql package
Requirements
| Requirement | Constraint | Supported by |
|---|---|---|
| PHP | ^8.4 |
HEAD , 10.0.0 |
^8.3 |
HEAD , 10.0.0 |
|
| PHPUnit | ^12.0.0 |
HEAD , 10.0.0 |
^11.3.0 |
HEAD |
|
^11.2.0 |
10.0.0 |
Installation
Note
The package intended to use in dev.
composer require --dev lastdragon-ru/lara-asp-graphql-testing
Usage
<?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; }
Assertions
assertGraphQLIntrospectionEquals
Compares default public schema (as the client sees it through introspection).
assertGraphQLSchemaEquals
Compares default internal schema (with all directives).
assertGraphQLSchemaNoBreakingChanges
Checks that no breaking changes in the default internal schema (with all directives).
assertGraphQLSchemaNoDangerousChanges
Checks that no dangerous changes in the default internal schema (with all directives).
assertGraphQLSchemaValid
Validates default internal schema (with all directives). Faster than lighthouse:validate-schema command because loads only used directives.
Contributing
Please use the main repository to report issues, send pull requests, or ask questions.