function update_test_postupdate_post_update_second in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php \update_test_postupdate_post_update_second()
Second update.
2 string references to 'update_test_postupdate_post_update_second'
- InstallUninstallTest::assertInstallModuleUpdates in core/
modules/ system/ src/ Tests/ Module/ InstallUninstallTest.php - Asserts the module post update functions after install.
- UpdatePostUpdateTest::testPostUpdate in core/
modules/ system/ src/ Tests/ Update/ UpdatePostUpdateTest.php - Tests hook_post_update_NAME().
File
- core/
modules/ system/ tests/ modules/ update_test_postupdate/ update_test_postupdate.post_update.php, line 17
Code
function update_test_postupdate_post_update_second() {
$execution = \Drupal::state()
->get('post_update_test_execution', []);
$execution[] = __FUNCTION__;
\Drupal::state()
->set('post_update_test_execution', $execution);
return 'Second update';
}