drupal-8.without_automated_cron.php

Test fixture.

File

core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php

View 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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.