diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-28 05:28:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-28 05:28:22 +0000 |
commit | 1bac765683a8026e5b99a29b8cd20caa950301fb (patch) | |
tree | 6d63668b520f3d68173c670fd3672fd2317c6850 /modules/simpletest/tests/update_test_2.install | |
parent | 7f58309f21e3f857a4681eea9fdc1ae517d6ddc7 (diff) | |
download | brdo-1bac765683a8026e5b99a29b8cd20caa950301fb.tar.gz brdo-1bac765683a8026e5b99a29b8cd20caa950301fb.tar.bz2 |
#211182 follow-up by clemens.tolboom, David_Rothstein, tstoeckler: Re-work update depencency check to deal with array_merge_recursive() edge case (with tests).
Diffstat (limited to 'modules/simpletest/tests/update_test_2.install')
-rw-r--r-- | modules/simpletest/tests/update_test_2.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/simpletest/tests/update_test_2.install b/modules/simpletest/tests/update_test_2.install index e2b4fb25f..e12b77b93 100644 --- a/modules/simpletest/tests/update_test_2.install +++ b/modules/simpletest/tests/update_test_2.install @@ -8,11 +8,30 @@ /** * Implements hook_update_dependencies(). + * + * @see update_test_1_update_dependencies() + * @see update_test_3_update_dependencies() */ function update_test_2_update_dependencies() { + // Combined with update_test_3_update_dependencies(), we are declaring here + // that these two modules run updates in the following order: + // 1. update_test_2_update_7000() + // 2. update_test_3_update_7000() + // 3. update_test_2_update_7001() + // 4. update_test_2_update_7002() $dependencies['update_test_2'][7001] = array( 'update_test_3' => 7000, ); + + // These are coordinated with the corresponding dependencies declared in + // update_test_1_update_dependencies(). + $dependencies['system'][7000] = array( + 'update_test_2' => 7001, + ); + $dependencies['system'][7001] = array( + 'update_test_1' => 7001, + ); + return $dependencies; } |