root . '/core/includes/update.inc'; $this->updateUrl = $GLOBALS['base_url'] . '/update.php'; $this->updateUser = $this->drupalCreateUser(['administer software updates']); } public function testInvalidUpdateHook() { // Confirm that a module with hook_update_8000() cannot be updated. $this->drupalLogin($this->updateUser); $this->drupalGet($this->updateUrl); $this->clickLink(t('Continue')); $this->assertText(t('Some of the pending updates cannot be applied because their dependencies were not met.')); } }