Skip to content

Commit

Permalink
MNT Move config from silverstripe/admin so that unit-tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 13, 2024
1 parent 58efda3 commit 450ad4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _config/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@ SilverStripe\Core\Injector\Injector:
properties:
States:
debugSchema: '%$SilverStripe\GraphQL\Dev\State\DebugSchemaState'

# This is added purely to prevent errors when running the unit-test IntegrationTest.php
# This config used to be defined in silverstripe/admin with
# on: [ graphqlSchemaBuild.admin ]
SilverStripe\Core\Injector\Injector:
SilverStripe\EventDispatcher\Dispatch\Dispatcher:
properties:
handlers:
graphqlTranscribe:
# at least one handler is required to prevent an error
# it does not need to use ".unit-test" as a key
on: [ graphqlSchemaBuild.unit-test ]
handler: '%$SilverStripe\GraphQL\Schema\Services\SchemaTranscribeHandler'

0 comments on commit 450ad4f

Please sign in to comment.