/**
* @DisabledFeatures("v6.6.0.0")
*
* @dataProvider addBackwardsCompatibilityProvider
*/
public function testAddBackwardsCompatibility(WriteCommand
$inputCommand, WriteCommand
$expectedCommand): void
{ $event =
new PreWriteValidationEvent(WriteContext::
createFromContext(Context::
createDefaultContext()),
[$inputCommand]);
$subscriber =
new ScheduledTaskCompatibilitySubscriber();
$subscriber->
addBackwardsCompatibility($event);
static::
assertEquals([$expectedCommand],
$event->
getCommands());
} public function testSubscriberHasNoEffectWhenFeatureIsEnabled(): void
{ $dummyExistence =
new EntityExistence('',
[], true, true, true,
[]);
$insertCommand =
new InsertCommand(new ScheduledTaskDefinition(),
[ 'id' => 'id',
'name' => 'name',
'run_interval' => 1,
],