We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
21 | class ExecutorTest extends \PHPUnit_Framework_TestCase |
||
22 | { |
||
23 | /** @var RequestExecutor */ |
||
24 | private $executor; |
||
25 | |||
26 | private $request = ['query' => 'query debug{ myField }', 'variables' => [], 'operationName' => null]; |
||
27 | |||
28 | public function setUp() |
||
44 | |||
45 | /** |
||
46 | * @expectedException \RuntimeException |
||
47 | * @expectedExceptionMessage Execution result should be an object instantiating "GraphQL\Executor\ExecutionResult". |
||
48 | */ |
||
49 | public function testInvalidExecutorReturnNotObject() |
||
54 | |||
55 | /** |
||
56 | * @expectedException \RuntimeException |
||
57 | * @expectedExceptionMessage Execution result should be an object instantiating "GraphQL\Executor\ExecutionResult". |
||
58 | */ |
||
59 | public function testInvalidExecutorReturnInvalidObject() |
||
64 | |||
65 | /** |
||
66 | * @expectedException \RuntimeException |
||
67 | * @expectedExceptionMessage PromiseAdapter should be an object instantiating "Overblog\GraphQLBundle\Executor\Promise\PromiseAdapterInterface" or "GraphQL\Executor\Promise\PromiseAdapter" with a "wait" method. |
||
68 | */ |
||
69 | public function testInvalidExecutorAdapterPromise() |
||
74 | |||
75 | public function testDisabledDebugInfo() |
||
79 | |||
80 | public function testEnabledDebugInfo() |
||
88 | |||
89 | /** |
||
90 | * @expectedException \RuntimeException |
||
91 | * @expectedExceptionMessage At least one schema should be declare. |
||
92 | */ |
||
93 | public function testGetSchemaNoSchemaFound() |
||
97 | |||
98 | private function createExecutorExecuteMock($returnValue) |
||
108 | } |
||
109 |