function StageCommitExceptionTest::providerCommitException
Data provider for testCommitException().
Return value
\string[][] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ StageCommitExceptionTest.php, line 48
Class
- StageCommitExceptionTest
- @coversDefaultClass \Drupal\package_manager\SandboxManagerBase @covers \Drupal\package_manager\PackageManagerUninstallValidator @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerCommitException() : array {
return [
'RuntimeException to ApplyFailedException' => [
'RuntimeException',
ApplyFailedException::class,
],
'InvalidArgumentException' => [
InvalidArgumentException::class,
SandboxException::class,
],
'PreconditionException' => [
PreconditionException::class,
SandboxException::class,
],
'Exception' => [
'Exception',
ApplyFailedException::class,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.