function update_test_postupdate_post_update_first

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_first()
  2. 10 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_first()
  3. 11.x core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_first()

First update.

4 string references to 'update_test_postupdate_post_update_first'
InstallUninstallTest::assertInstallModuleUpdates in core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
Asserts the module post update functions after install.
InstallUninstallTest::assertUninstallModuleUpdates in core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
Asserts the module post update functions after uninstall.
UpdatePostUpdateTest::testPostUpdate in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateTest.php
Tests hook_post_update_NAME().
UpdateRemovedPostUpdateTest::testRemovedPostUpdate in core/modules/system/tests/src/Functional/UpdateSystem/UpdateRemovedPostUpdateTest.php
Tests hook_post_update_NAME().

File

core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php, line 11

Code

function update_test_postupdate_post_update_first() {
    $execution = \Drupal::state()->get('post_update_test_execution', []);
    $execution[] = __FUNCTION__;
    \Drupal::state()->set('post_update_test_execution', $execution);
    return 'First update';
}

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