public function DailyTagPurgeLimitCheckTest::dailyTagPurgeLimitCheckProvider in CloudFlare 8
Data provider for validating DailyTagPurgeLimitCheck.
Return value
array[] Returns per data set an array with:
- count of daily tag purge requests
- expected status returned by diagnostic check
File
- modules/
cloudflarepurger/ tests/ src/ Unit/ DailyTagPurgeLimitCheckTest.php, line 55
Class
- DailyTagPurgeLimitCheckTest
- Tests that purge_requirements() passes on our diagnostic checks.
Namespace
Drupal\Tests\cloudflarepurger\UnitCode
public function dailyTagPurgeLimitCheckProvider() {
return [
[
NULL,
DiagnosticCheckInterface::SEVERITY_OK,
],
[
0,
DiagnosticCheckInterface::SEVERITY_OK,
],
[
1,
DiagnosticCheckInterface::SEVERITY_OK,
],
[
1499,
DiagnosticCheckInterface::SEVERITY_OK,
],
[
1500,
DiagnosticCheckInterface::SEVERITY_WARNING,
],
[
1501,
DiagnosticCheckInterface::SEVERITY_WARNING,
],
[
1502,
DiagnosticCheckInterface::SEVERITY_WARNING,
],
[
1999,
DiagnosticCheckInterface::SEVERITY_WARNING,
],
[
2000,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
[
2001,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
[
2002,
DiagnosticCheckInterface::SEVERITY_ERROR,
],
];
}