Commit a2daadf8 authored by git's avatar git Committed by RenatoG

Issue #2966668 by imshivani, voleger, RenatoG: Use Short Array (New Coding Standard)

parent 4be577a0
...@@ -55,21 +55,21 @@ class XmlSitemapMenuFunctionalTest extends XmlSitemapTestBase { ...@@ -55,21 +55,21 @@ class XmlSitemapMenuFunctionalTest extends XmlSitemapTestBase {
// @codingStandardsIgnoreStart // @codingStandardsIgnoreStart
// $this->drupalLogin($this->admin_user); // $this->drupalLogin($this->admin_user);
// //
// $edit = array( // $edit = [
// 'label' => $this->randomMachineName(), // 'label' => $this->randomMachineName(),
// 'id' => Unicode::strtolower($this->randomMachineName()), // 'id' => Unicode::strtolower($this->randomMachineName()),
// 'xmlsitemap[status]' => '1', // 'xmlsitemap[status]' => '1',
// 'xmlsitemap[priority]' => '1.0', // 'xmlsitemap[priority]' => '1.0',
// ); // ];
// $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save'); // $this->drupalPostForm('admin/structure/menu/add', $edit, 'Save');
// //
// xmlsitemap_link_bundle_settings_save('menu', $edit['id'], array('status' => 0, 'priority' => 0.5, 'changefreq' => 0)); // xmlsitemap_link_bundle_settings_save('menu', $edit['id'], ['status' => 0, 'priority' => 0.5, 'changefreq' => 0]);
// //
// $this->drupalGet('admin/structure/menu/manage/' . $edit['id']); // $this->drupalGet('admin/structure/menu/manage/' . $edit['id']);
// //
// $menu_id = $edit['id']; // $menu_id = $edit['id'];
// $this->clickLink('Add link'); // $this->clickLink('Add link');
// $edit = array( // $edit = [
// 'link[0][uri]' => 'node', // 'link[0][uri]' => 'node',
// 'title[0][value]' => $this->randomMachineName(), // 'title[0][value]' => $this->randomMachineName(),
// 'description[0][value]' => '', // 'description[0][value]' => '',
...@@ -77,7 +77,7 @@ class XmlSitemapMenuFunctionalTest extends XmlSitemapTestBase { ...@@ -77,7 +77,7 @@ class XmlSitemapMenuFunctionalTest extends XmlSitemapTestBase {
// 'expanded[value]' => FALSE, // 'expanded[value]' => FALSE,
// 'menu_parent' => $menu_id . ':', // 'menu_parent' => $menu_id . ':',
// 'weight[0][value]' => 0, // 'weight[0][value]' => 0,
// ); // ];
// $this->drupalPostForm(NULL, $edit, 'Save');. // $this->drupalPostForm(NULL, $edit, 'Save');.
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment