We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
20 | class FieldsConfigSolutionTest extends AbstractConfigSolutionTest |
||
21 | { |
||
22 | protected function createConfigSolution() |
||
29 | |||
30 | /** |
||
31 | * @expectedException \Overblog\GraphQLBundle\Error\UserError |
||
32 | * @expectedExceptionMessage Access denied to this field |
||
33 | */ |
||
34 | public function testResolveAccessAndWrapResolveCallbackWithScalarValueAndAccessDenied() |
||
39 | |||
40 | /** |
||
41 | * @expectedException \Overblog\GraphQLBundle\Error\UserError |
||
42 | * @expectedExceptionMessage Access denied to this field |
||
43 | */ |
||
44 | public function testResolveAccessAndWrapResolveCallbackWithScalarValueAndExpressionEvalThrowingException() |
||
49 | |||
50 | public function testResolveAccessAndWrapResolveCallbackWithScalarValueAndAccessDeniedGranted() |
||
55 | |||
56 | public function testResolveAccessAndWrapResolveCallbackWithArrayAndAccessDeniedToEveryItemStartingByTo() |
||
76 | |||
77 | public function testResolveAccessAndWrapResolveCallbackWithRelayConnectionAndAccessGrantedToEveryNodeStartingByTo() |
||
87 | |||
88 | /** |
||
89 | * @param bool|string $hasAccess |
||
90 | * @param callable|null $callback |
||
91 | * |
||
92 | * @return callback |
||
93 | */ |
||
94 | private function invokeResolveAccessAndWrapResolveCallback($hasAccess, callable $callback = null) |
||
111 | |||
112 | /** |
||
113 | * Call protected/private method of a class. |
||
114 | * |
||
115 | * @see https://jtreminio.com/2013/03/unit-testing-tutorial-part-3-testing-protected-private-methods-coverage-reports-and-crap/ |
||
116 | * |
||
117 | * @param object $object Instantiated object that we will run method on. |
||
118 | * @param string $methodName Method name to call |
||
119 | * @param array $parameters Array of parameters to pass into method. |
||
120 | * |
||
121 | * @return mixed Method return. |
||
122 | */ |
||
123 | private function invokeMethod($object, $methodName, array $parameters = []) |
||
131 | } |
||
132 |