From 450ad4fc79cb9842ae7dff41662f5773f7a939c6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 13 Aug 2024 18:52:31 +1200 Subject: [PATCH] MNT Move config from silverstripe/admin so that unit-tests pass --- _config/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_config/tests.yml b/_config/tests.yml index a9023d1a..4b4d1212 100644 --- a/_config/tests.yml +++ b/_config/tests.yml @@ -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'