function StageConflictTest::providerDestroyDuringApply
Data provider for testDestroyDuringApply().
Return value
mixed[][] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ StageConflictTest.php, line 64
Class
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerDestroyDuringApply() : array {
$error_message_while_being_applied = 'Cannot destroy the stage directory while it is being applied to the active directory.';
return [
'force destroy on pre-apply, fresh' => [
PreApplyEvent::class,
TRUE,
1,
$error_message_while_being_applied,
],
'destroy on pre-apply, fresh' => [
PreApplyEvent::class,
FALSE,
1,
$error_message_while_being_applied,
],
'force destroy on pre-apply, stale' => [
PreApplyEvent::class,
TRUE,
7200,
'Stage directory does not exist',
],
'destroy on pre-apply, stale' => [
PreApplyEvent::class,
FALSE,
7200,
'Stage directory does not exist',
],
'force destroy on post-apply, fresh' => [
PostApplyEvent::class,
TRUE,
1,
$error_message_while_being_applied,
],
'destroy on post-apply, fresh' => [
PostApplyEvent::class,
FALSE,
1,
$error_message_while_being_applied,
],
'force destroy on post-apply, stale' => [
PostApplyEvent::class,
TRUE,
7200,
NULL,
],
'destroy on post-apply, stale' => [
PostApplyEvent::class,
FALSE,
7200,
NULL,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.