public function OpcodeCacheTest::opcodeCacheProvider in Automatic Updates 8
Data provider for opcode cache testing.
File
- tests/
src/ Kernel/ ReadinessChecker/ OpcodeCacheTest.php, line 41
Class
- OpcodeCacheTest
- Tests opcode caching and execution via CLI.
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessCheckerCode
public function opcodeCacheProvider() {
$datum[] = [
'ini' => 'opcache.validate_timestamps',
'ini_value' => 0,
'failure' => TRUE,
];
$datum[] = [
'ini' => 'opcache.validate_timestamps',
'ini_value' => 1,
'failure' => FALSE,
];
$datum[] = [
'ini' => 'opcache.validate_timestamps',
'ini_value' => FALSE,
'failure' => TRUE,
];
$datum[] = [
'ini' => 'opcache.validate_timestamps',
'ini_value' => TRUE,
'failure' => FALSE,
];
$datum[] = [
'ini' => 'opcache.validate_timestamps',
'ini_value' => 2,
'failure' => FALSE,
];
$datum[] = [
'ini' => 'opcache.revalidate_freq',
'ini_value' => 3,
'failure' => TRUE,
];
$datum[] = [
'ini' => 'opcache.revalidate_freq',
'ini_value' => 2,
'failure' => FALSE,
];
return $datum;
}