graphql-php/tests/Validator/ValidationTest.php

31 lines
595 B
PHP
Raw Normal View History

2016-04-25 16:50:03 +03:00
<?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
}
}
}
');
}
}