Skip to content

Commit

Permalink
DEP Limit PHP support for CMS 6 (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 22, 2024
1 parent c783f5c commit 69ed9a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
with:
extra_jobs: |
- php: 8.1
- php: 8.3
endtoend: true
endtoend_suite: asset-admin
endtoend_config: vendor/silverstripe/asset-admin/behat.yml
- php: 8.1
- php: 8.3
endtoend: true
endtoend_suite: versioned-admin
endtoend_config: vendor/silverstripe/versioned-admin/behat.yml
- php: 8.1
- php: 8.3
endtoend: true
endtoend_suite: silverstripe-elemental
endtoend_config: vendor/dnadesign/silverstripe-elemental/behat.yml
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "silverstripe-vendormodule",
"license": "BSD-3-Clause",
"require": {
"php": "^8.1",
"php": "^8.3",
"silverstripe/framework": "^6",
"silverstripe/vendor-plugin": "^2",
"webonyx/graphql-php": "^15.0.1",
Expand Down
9 changes: 4 additions & 5 deletions tests/Schema/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
use GraphQL\Validator\Rules\QueryComplexity;
use GraphQL\Validator\Rules\QueryDepth;
use GraphQL\Validator\ValidationContext;
use ReflectionProperty;
use ReflectionClass;

class IntegrationTest extends SapphireTest
{
Expand Down Expand Up @@ -1688,11 +1688,10 @@ public function testGlobalRuleNotRemoved()

private function removeDocumentValidatorRule(string $ruleName): void
{
$reflectionRules = new ReflectionProperty(DocumentValidator::class, 'rules');
$reflectionRules->setAccessible(true);
$rules = $reflectionRules->getValue();
$reflectionValidator = new ReflectionClass(DocumentValidator::class);
$rules = $reflectionValidator->getStaticPropertyValue('rules');
unset($rules[$ruleName]);
$reflectionRules->setValue($rules);
$reflectionValidator->setStaticPropertyValue('rules', $rules);
}

private function createProviderForComplexityOrDepth(int $limit): array
Expand Down

0 comments on commit 69ed9a0

Please sign in to comment.