graphql-php/tests/Validator/ValidationTest.php

27 lines
496 B
PHP
Raw Normal View History

2016-04-25 16:50:03 +03:00
<?php
namespace GraphQL\Tests\Validator;
2017-07-03 14:04:32 +03:00
class ValidationTest extends TestCase
2016-04-25 16:50:03 +03:00
{
// Validate: Supports full validation
/**
* @it validates queries
*/
public function testValidatesQueries()
{
$this->expectPassesCompleteValidation('
query {
catOrDog {
... on Cat {
furColor
}
... on Dog {
isHousetrained
}
}
}
');
}
}