function update_test_postupdate_post_update_test0 in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_test0()
- 9 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_test0()
Test0 update.
2 string references to 'update_test_postupdate_post_update_test0'
- InstallUninstallTest::assertInstallModuleUpdates in core/
modules/ system/ tests/ src/ Functional/ Module/ InstallUninstallTest.php - Asserts the module post update functions after install.
- UpdatePostUpdateTest::testPostUpdate in core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ UpdatePostUpdateTest.php - Tests hook_post_update_NAME().
File
- core/
modules/ system/ tests/ modules/ update_test_postupdate/ update_test_postupdate.post_update.php, line 44 - Post update functions for test module.
Code
function update_test_postupdate_post_update_test0() {
$execution = \Drupal::state()
->get('post_update_test_execution', []);
$execution[] = __FUNCTION__;
\Drupal::state()
->set('post_update_test_execution', $execution);
return 'Test0 update';
}