public function CredentialTestCheckTest::credentialCheckProvider in CloudFlare 8
PhpUnit provider to api rate limits.
File
- modules/
cloudflarepurger/ tests/ src/ Unit/ CredentialTestCheckTest.php, line 48
Class
- CredentialTestCheckTest
- Tests that purge_requirements() passes on our diagnostic checks.
Namespace
Drupal\Tests\cloudflarepurger\UnitCode
public function credentialCheckProvider() {
return [
[
NULL,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
[
TRUE,
DiagnosticCheckInterface::SEVERITY_OK,
],
[
FALSE,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
[
0,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
[
1,
DiagnosticCheckInterface::SEVERITY_OK,
],
];
}