Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -27,21 +27,21 @@ class SupernovaGenerator implements UrlGeneratorInterface {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) {
|
||||
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPathFromRoute($name, $parameters = array()) {
|
||||
public function getPathFromRoute($name, $parameters = []) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function generateFromRoute($name, $parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) {
|
||||
public function generateFromRoute($name, $parameters = [], $options = [], $collect_bubbleable_metadata = FALSE) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ class SupernovaGenerator implements UrlGeneratorInterface {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getRouteDebugMessage($name, array $parameters = array()) {
|
||||
public function getRouteDebugMessage($name, array $parameters = []) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class ExperimentalHelpTest extends BrowserTestBase {
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = array('help', 'experimental_module_test', 'help_page_test');
|
||||
public static $modules = ['help', 'experimental_module_test', 'help_page_test'];
|
||||
|
||||
/**
|
||||
* The admin user.
|
||||
|
|
|
@ -20,7 +20,7 @@ class HelpTest extends BrowserTestBase {
|
|||
*
|
||||
* @var array.
|
||||
*/
|
||||
public static $modules = array('help_test', 'help_page_test');
|
||||
public static $modules = ['help_test', 'help_page_test'];
|
||||
|
||||
/**
|
||||
* Use the Standard profile to test help implementations of many core modules.
|
||||
|
@ -41,8 +41,8 @@ class HelpTest extends BrowserTestBase {
|
|||
parent::setUp();
|
||||
|
||||
// Create users.
|
||||
$this->adminUser = $this->drupalCreateUser(array('access administration pages', 'view the administration theme', 'administer permissions'));
|
||||
$this->anyUser = $this->drupalCreateUser(array());
|
||||
$this->adminUser = $this->drupalCreateUser(['access administration pages', 'view the administration theme', 'administer permissions']);
|
||||
$this->anyUser = $this->drupalCreateUser([]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ class HelpTest extends BrowserTestBase {
|
|||
// 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 help listed on this page 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')));
|
||||
$this->assertRaw(t('For more information, refer to the help listed on this page or to the <a href=":docs">online documentation</a> and <a href=":support">support</a> pages at <a href=":drupal">drupal.org</a>.', [':docs' => 'https://www.drupal.org/documentation', ':support' => 'https://www.drupal.org/support', ':drupal' => 'https://www.drupal.org']));
|
||||
|
||||
// Verify that hook_help() section title and description appear.
|
||||
$this->assertRaw('<h2>' . t('Module overviews') . '</h2>');
|
||||
|
@ -74,13 +74,13 @@ class HelpTest extends BrowserTestBase {
|
|||
|
||||
// Make sure links are properly added for modules implementing hook_help().
|
||||
foreach ($this->getModuleList() as $module => $name) {
|
||||
$this->assertLink($name, 0, format_string('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name)));
|
||||
$this->assertLink($name, 0, format_string('Link properly added to @name (admin/help/@module)', ['@module' => $module, '@name' => $name]));
|
||||
}
|
||||
|
||||
// Ensure that module which does not provide an module overview page is
|
||||
// handled correctly.
|
||||
$this->clickLink(\Drupal::moduleHandler()->getName('help_test'));
|
||||
$this->assertRaw(t('No help is available for module %module.', array('%module' => \Drupal::moduleHandler()->getName('help_test'))));
|
||||
$this->assertRaw(t('No help is available for module %module.', ['%module' => \Drupal::moduleHandler()->getName('help_test')]));
|
||||
|
||||
// Verify that the order of topics is alphabetical by displayed module
|
||||
// name, by checking the order of some modules, including some that would
|
||||
|
@ -119,11 +119,11 @@ class HelpTest extends BrowserTestBase {
|
|||
$this->drupalGet('admin/help/' . $module);
|
||||
$this->assertResponse($response);
|
||||
if ($response == 200) {
|
||||
$this->assertTitle($name . ' | Drupal', format_string('%module title was displayed', array('%module' => $module)));
|
||||
$this->assertTitle($name . ' | Drupal', format_string('%module title was displayed', ['%module' => $module]));
|
||||
$this->assertEquals($name, $this->cssSelect('h1.page-title')[0]->getText(), "$module heading was displayed");
|
||||
$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)));
|
||||
$this->assertText(t('@module administration pages', ['@module' => $name]));
|
||||
}
|
||||
foreach ($admin_tasks as $task) {
|
||||
$this->assertLink($task['title']);
|
||||
|
@ -149,7 +149,7 @@ class HelpTest extends BrowserTestBase {
|
|||
* A list of enabled modules.
|
||||
*/
|
||||
protected function getModuleList() {
|
||||
$modules = array();
|
||||
$modules = [];
|
||||
$module_data = system_rebuild_module_data();
|
||||
foreach (\Drupal::moduleHandler()->getImplementations('help') as $module) {
|
||||
$modules[$module] = $module_data[$module]->info['name'];
|
||||
|
|
|
@ -18,7 +18,7 @@ class NoHelpTest extends BrowserTestBase {
|
|||
*
|
||||
* @var array.
|
||||
*/
|
||||
public static $modules = array('help', 'menu_test');
|
||||
public static $modules = ['help', 'menu_test'];
|
||||
|
||||
/**
|
||||
* The user who will be created.
|
||||
|
@ -27,7 +27,7 @@ class NoHelpTest extends BrowserTestBase {
|
|||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->adminUser = $this->drupalCreateUser(array('access administration pages'));
|
||||
$this->adminUser = $this->drupalCreateUser(['access administration pages']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue