Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -77,7 +77,7 @@ class HelpController extends ControllerBase {
|
|||
$column = array(
|
||||
'#type' => 'container',
|
||||
'links' => array('#theme' => 'item_list'),
|
||||
'#attributes' => array('class' => array('layout-column', 'quarter')),
|
||||
'#attributes' => array('class' => array('layout-column', 'layout-column--quarter')),
|
||||
);
|
||||
$output = array(
|
||||
'#prefix' => '<div class="clearfix">',
|
||||
|
|
|
@ -67,7 +67,7 @@ class HelpTest extends WebTestBase {
|
|||
// Verify that introductory help text exists, goes for 100% module coverage.
|
||||
$this->drupalLogin($this->adminUser);
|
||||
$this->drupalGet('admin/help');
|
||||
$this->assertRaw(t('For more information, refer to the subjects listed in the Help Topics section or to the <a href="!docs">online documentation</a> and <a href="!support">support</a> pages at <a href="!drupal">drupal.org</a>.', array('!docs' => 'https://www.drupal.org/documentation', '!support' => 'https://www.drupal.org/support', '!drupal' => 'https://www.drupal.org')), 'Help intro text correctly appears.');
|
||||
$this->assertRaw(t('For more information, refer to the subjects listed in the Help Topics section or to the <a href=":docs">online documentation</a> and <a href=":support">support</a> pages at <a href=":drupal">drupal.org</a>.', array(':docs' => 'https://www.drupal.org/documentation', ':support' => 'https://www.drupal.org/support', ':drupal' => 'https://www.drupal.org')), 'Help intro text correctly appears.');
|
||||
|
||||
// Verify that help topics text appears.
|
||||
$this->assertRaw('<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>', 'Help topics text correctly appears.');
|
||||
|
@ -105,14 +105,24 @@ class HelpTest extends WebTestBase {
|
|||
$this->assertResponse($response);
|
||||
if ($response == 200) {
|
||||
$this->assertTitle($name . ' | Drupal', format_string('%module title was displayed', array('%module' => $module)));
|
||||
$this->assertRaw('<h1 class="page-title">' . t($name) . '</h1>', format_string('%module heading was displayed', array('%module' => $module)));
|
||||
$this->assertEqual($this->cssSelect('h1.page-title')[0], t($name), format_string('%module heading was displayed', array('%module' => $module)));
|
||||
$admin_tasks = system_get_module_admin_tasks($module, system_get_info('module', $module));
|
||||
if (!empty($admin_tasks)) {
|
||||
$this->assertText(t('@module administration pages', array('@module' => $name)));
|
||||
}
|
||||
foreach ($admin_tasks as $task) {
|
||||
$this->assertLink($task['title']);
|
||||
// Ensure there are no double escaped '&' or '<' characters.
|
||||
$this->assertNoEscaped('&', 'The help text does not have double escaped &.');
|
||||
$this->assertNoEscaped('<', 'The help text does not have double escaped <.');
|
||||
// Ensure there are no escaped '<' characters.
|
||||
$this->assertNoEscaped('<', 'The help text does not have single escaped <.');
|
||||
}
|
||||
// Ensure there are no double escaped '&' or '<' characters.
|
||||
$this->assertNoEscaped('&');
|
||||
$this->assertNoEscaped('<');
|
||||
// Ensure there are no escaped '<' characters.
|
||||
$this->assertNoEscaped('<');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue