| 7 update.test | UpdateCoreTestCase::testServiceUnavailable() |
| 8 update.test | UpdateCoreTestCase::testServiceUnavailable() |
Tests the update module when the update server returns 503 (Service unavailable) errors.
File
- modules/
update/ update.test, line 221 - Tests for update.module.
Code
function testServiceUnavailable() {
$this->refreshUpdateStatus(array(), '503-error');
// Ensure that no "Warning: SimpleXMLElement..." parse errors are found.
$this->assertNoText('SimpleXMLElement');
$this->assertUniqueText(t('Failed to get available update data for one project.'));
}
Login or register to post comments