mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 14:26:08 +03:00
27 lines
496 B
PHP
27 lines
496 B
PHP
<?php
|
|
namespace GraphQL\Tests\Validator;
|
|
|
|
class ValidationTest extends TestCase
|
|
{
|
|
// Validate: Supports full validation
|
|
|
|
/**
|
|
* @it validates queries
|
|
*/
|
|
public function testValidatesQueries()
|
|
{
|
|
$this->expectPassesCompleteValidation('
|
|
query {
|
|
catOrDog {
|
|
... on Cat {
|
|
furColor
|
|
}
|
|
... on Dog {
|
|
isHousetrained
|
|
}
|
|
}
|
|
}
|
|
');
|
|
}
|
|
}
|