Skip to content

Commit 6b6d79e

Browse files
Alex PottKlaus Purer
Alex Pott
authored and
Klaus Purer
committed
test(dataproducer): Add helper methods that are needed by graphql_core_schema module (#3515177 by alexpott)
1 parent b46b350 commit 6b6d79e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitlab-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ variables:
2323

2424
phpstan (custom):
2525
extends: phpstan
26+
allow_failure: false
2627
rules:
2728
- when: on_success
2829
needs:

tests/src/Kernel/TestFieldContext.php

+21
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,25 @@ class TestFieldContext extends FieldContext {
1414
*/
1515
public function __construct() {}
1616

17+
/**
18+
* {@inheritdoc}
19+
*/
20+
public function getContextValue($name) {
21+
return NULL;
22+
}
23+
24+
/**
25+
* {@inheritdoc}
26+
*/
27+
public function setContextValue($name, $value) {
28+
return $this;
29+
}
30+
31+
/**
32+
* {@inheritdoc}
33+
*/
34+
public function hasContextValue($name) {
35+
return FALSE;
36+
}
37+
1738
}

0 commit comments

Comments
 (0)