function SandboxManagerBaseTest::providerStoreDestroyInfo
Data provider for testStoreDestroyInfo().
Return value
\string[][] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ SandboxManagerBaseTest.php, line 234
Class
- SandboxManagerBaseTest
- @coversDefaultClass \Drupal\package_manager\SandboxManagerBase @group package_manager @group #slow @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerStoreDestroyInfo() : array {
return [
'Changes applied' => [
FALSE,
TRUE,
NULL,
'This operation has already been applied.',
],
'Changes not applied and forced' => [
TRUE,
FALSE,
NULL,
'This operation was canceled by another user.',
],
'Changes not applied and not forced' => [
FALSE,
FALSE,
NULL,
'This operation was already canceled.',
],
'Changes applied, with a custom exception message.' => [
FALSE,
TRUE,
t('Stage destroyed with a custom message.'),
'Stage destroyed with a custom message.',
],
'Changes not applied and forced, with a custom exception message.' => [
TRUE,
FALSE,
t('Stage destroyed with a custom message.'),
'Stage destroyed with a custom message.',
],
'Changes not applied and not forced, with a custom exception message.' => [
FALSE,
FALSE,
t('Stage destroyed with a custom message.'),
'Stage destroyed with a custom message.',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.