Skip to content

Commit e971300

Browse files
committed
Allow to set maxLimit, meQuery & authQuery configs in tests.
1 parent d699cad commit e971300

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/GraphQLTestCase.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ public static function setUpBeforeClass()
123123
Utils::module()->legalPageImageFields = array_merge(Utils::module()->legalPageImageFields, $settings['legalPageImageFields']);
124124
}
125125

126+
if (isset($settings['maxLimit'])) {
127+
Utils::module()->maxLimit = $settings['maxLimit'];
128+
}
129+
130+
if (isset($settings['meQuery'])) {
131+
Utils::module()->meQuery = $settings['meQuery'];
132+
}
133+
134+
if (isset($settings['authQuery'])) {
135+
Utils::module()->authQuery = $settings['authQuery'];
136+
}
137+
126138
if (isset($settings['access'])) {
127139
self::rememberOriginalAccessRules($settings['access']);
128140

0 commit comments

Comments
 (0)