drupal-8.without_automated_cron.php in Drupal 8
Test fixture.
File
core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.phpView source
<?php
/**
* @file
* Test fixture.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$config = $connection;
$connection
->merge('config')
->condition('name', 'system.cron')
->condition('collection', '')
->fields([
'name' => 'system.cron',
'collection' => '',
'data' => serialize([
'threshold' => [
'autorun' => 0,
],
]),
])
->execute();