update_test_failing.post_update.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
  2. 8.9.x core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
  3. 10 core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php

File

core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php

View source
<?php


/**
 * @file
 * Post update functions for test module.
 */
declare (strict_types=1);

/**
 * First update, should not be run since this module's update hooks fail.
 */
function update_test_failing_post_update_first() {
    $execution = \Drupal::state()->get('post_update_test_execution', []);
    $execution[] = __FUNCTION__;
    \Drupal::state()->set('post_update_test_execution', $execution);
}

Functions

Title Deprecated Summary
update_test_failing_post_update_first First update, should not be run since this module's update hooks fail.

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