$this->
assertTrue($state['entity_state::delete'
], 'ConfigEntity::isSyncing() returns TRUE'
);
} /**
* Tests that the isConfigSyncing flag is cleanup after an invalid step.
*/
public function testInvalidStep() { $this->
assertFalse(\Drupal::
isConfigSyncing(), 'Before an import \Drupal::isConfigSyncing() returns FALSE'
);
$context =
[];
$config_importer =
$this->
configImporter();
try { $config_importer->
doSyncStep('a_non_existent_step',
$context);
$this->
fail('Expected \InvalidArgumentException thrown'
);
} catch (\InvalidArgumentException
$e) { // Expected exception; just continue testing.
} $this->
assertFalse(\Drupal::
isConfigSyncing(), 'After an invalid step \Drupal::isConfigSyncing() returns FALSE'
);
} /**
* Tests that the isConfigSyncing flag is set correctly during a custom step.
*/