mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 16:36:02 +03:00
31 lines
595 B
PHP
31 lines
595 B
PHP
|
<?php
|
||
|
namespace GraphQL\Tests\Validator;
|
||
|
|
||
|
use GraphQL\Language\Parser;
|
||
|
use GraphQL\Utils\TypeInfo;
|
||
|
use GraphQL\Validator\DocumentValidator;
|
||
|
|
||
|
class ValidationText extends TestCase
|
||
|
{
|
||
|
// Validate: Supports full validation
|
||
|
|
||
|
/**
|
||
|
* @it validates queries
|
||
|
*/
|
||
|
public function testValidatesQueries()
|
||
|
{
|
||
|
$this->expectPassesCompleteValidation('
|
||
|
query {
|
||
|
catOrDog {
|
||
|
... on Cat {
|
||
|
furColor
|
||
|
}
|
||
|
... on Dog {
|
||
|
isHousetrained
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
');
|
||
|
}
|
||
|
}
|