File tree 2 files changed +25
-13
lines changed
Tests/Unit/DependencyInjection
2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ private function getAsyncEventsConfiguration(): ArrayNodeDefinition
91
91
return MissingComponentFactory::getConfiguration ('async_events ' , ['enqueue/async-event-dispatcher ' ]);
92
92
}
93
93
94
- return (new ArrayNodeDefinition ('job ' ))
94
+ return (new ArrayNodeDefinition ('async_events ' ))
95
95
->addDefaultsIfNotSet ()
96
96
->canBeEnabled ()
97
97
;
Original file line number Diff line number Diff line change @@ -377,12 +377,16 @@ public function testShouldDisableAsyncEventsByDefault()
377
377
378
378
$ processor = new Processor ();
379
379
$ config = $ processor ->processConfiguration ($ configuration , [[
380
- 'transport ' => [],
380
+ 'default ' => [
381
+ 'transport ' => [],
382
+ ],
381
383
]]);
382
384
383
385
$ this ->assertArraySubset ([
384
- 'async_events ' => [
385
- 'enabled ' => false ,
386
+ 'default ' => [
387
+ 'async_events ' => [
388
+ 'enabled ' => false ,
389
+ ],
386
390
],
387
391
], $ config );
388
392
}
@@ -394,26 +398,34 @@ public function testShouldAllowEnableAsyncEvents()
394
398
$ processor = new Processor ();
395
399
396
400
$ config = $ processor ->processConfiguration ($ configuration , [[
397
- 'transport ' => [],
398
- 'async_events ' => true ,
401
+ 'default ' => [
402
+ 'transport ' => [],
403
+ 'async_events ' => true ,
404
+ ],
399
405
]]);
400
406
401
407
$ this ->assertArraySubset ([
402
- 'async_events ' => [
403
- 'enabled ' => true ,
408
+ 'default ' => [
409
+ 'async_events ' => [
410
+ 'enabled ' => true ,
411
+ ],
404
412
],
405
413
], $ config );
406
414
407
415
$ config = $ processor ->processConfiguration ($ configuration , [[
408
- 'transport ' => [],
409
- 'async_events ' => [
410
- 'enabled ' => true ,
416
+ 'default ' => [
417
+ 'transport ' => [],
418
+ 'async_events ' => [
419
+ 'enabled ' => true ,
420
+ ],
411
421
],
412
422
]]);
413
423
414
424
$ this ->assertArraySubset ([
415
- 'async_events ' => [
416
- 'enabled ' => true ,
425
+ 'default ' => [
426
+ 'async_events ' => [
427
+ 'enabled ' => true ,
428
+ ],
417
429
],
418
430
], $ config );
419
431
}
You can’t perform that action at this time.
0 commit comments