'error_message'=>'An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.',
$text=$data['missing_dependencies']?'This update will been skipped due to the following missing dependencies: <em>'.implode(', ',$data['missing_dependencies']).'</em>':"This update will be skipped due to an error in the module's code.";
$text='Your system schema version is '.$system_schema.'. Updating directly from a schema version prior to 8000 is not supported. You must <a href="https://drupal.org/node/2179269">migrate your site to Drupal 8</a> first.';
$this->assertRaw($text,'Updates from schema versions prior to 8000 are prevented.');
$this->assertText(t('No pending updates.'),'End of update process was reached.');
// Confirm that all caches were cleared.
$this->assertText(t('hook_cache_flush() invoked for update_script_test.module.'),'Caches were cleared when there were no requirements warnings or errors.');
...
...
@@ -109,8 +87,8 @@ function testRequirements() {
$this->assertText('This is a requirements warning provided by the update_script_test module.');
$this->clickLink('try again');
$this->assertNoText('This is a requirements warning provided by the update_script_test module.');
$this->assertText(t('The update_script_test_update_8001() update was executed successfully.'),'End of update process was reached.');
// Confirm that all caches were cleared.
$this->assertText(t('hook_cache_flush() invoked for update_script_test.module.'),'Caches were cleared after resolving a requirements warning and applying updates.');
...
...
@@ -120,7 +98,7 @@ function testRequirements() {
$this->assertText('This is a requirements warning provided by the update_script_test module.');
$this->clickLink('try again');
$this->assertNoText('This is a requirements warning provided by the update_script_test module.');
$this->assertText(t('No pending updates.'),'End of update process was reached.');
// Confirm that all caches were cleared.
$this->assertText(t('hook_cache_flush() invoked for update_script_test.module.'),'Caches were cleared after applying updates and re-running the script.');
...
...
@@ -155,7 +133,8 @@ function testThemeSystem() {
functiontestNoUpdateFunctionality(){
// Click through update.php with 'administer software updates' permission.