diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php index 65dd7af..48faf24 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php @@ -48,13 +48,6 @@ class FilterFormatAccessTest extends WebTestBase { */ protected $disallowed_format; - /** - * Modules to enable. - * - * @var array - */ - public static $modules = array('contextual'); - public static function getInfo() { return array( 'name' => 'Filter format access', @@ -95,7 +88,6 @@ function setUp() { $this->web_user = $this->drupalCreateUser(array( 'create page content', 'edit any page content', - 'access contextual links', filter_permission_name($this->allowed_format), )); @@ -104,7 +96,6 @@ function setUp() { 'administer filters', 'create page content', 'edit any page content', - 'access contextual links', filter_permission_name($this->allowed_format), filter_permission_name($this->disallowed_format), )); diff --git a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php index b650fea..b461492 100644 --- a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php @@ -14,13 +14,6 @@ class PageEditTest extends NodeTestBase { protected $web_user; protected $admin_user; - /** - * Modules to enable. - * - * @var array - */ - public static $modules = array('node', 'contextual'); - public static function getInfo() { return array( 'name' => 'Node edit', @@ -32,8 +25,8 @@ public static function getInfo() { function setUp() { parent::setUp(); - $this->web_user = $this->drupalCreateUser(array('edit own page content', 'create page content', 'access contextual links')); - $this->admin_user = $this->drupalCreateUser(array('bypass node access', 'administer nodes', 'access contextual links')); + $this->web_user = $this->drupalCreateUser(array('edit own page content', 'create page content')); + $this->admin_user = $this->drupalCreateUser(array('bypass node access', 'administer nodes')); } /** @@ -57,11 +50,14 @@ function testPageEdit() { // Check that "edit" link points to correct page. $this->clickLink(t('Edit')); - $edit_url = url("node/$node->nid/edit", array('absolute' => TRUE, 'query' => array('destination' => 'node/1'))); + $edit_url = url("node/$node->nid/edit", array('absolute' => TRUE)); $actual_url = $this->getURL(); $this->assertEqual($edit_url, $actual_url, 'On edit page.'); // Check that the title and body fields are displayed with the correct values. + $active = '' . t('(active tab)') . ''; + $link_text = t('!local-task-title!active', array('!local-task-title' => t('Edit'), '!active' => $active)); + $this->assertText(strip_tags($link_text), 0, 'Edit tab found and marked active.'); $this->assertFieldByName($title_key, $edit[$title_key], 'Title field displayed.'); $this->assertFieldByName($body_key, $edit[$body_key], 'Body field displayed.'); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index ff073ae..f2206a0 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -1769,7 +1769,7 @@ function node_menu() { 'access arguments' => array('update', 1), 'weight' => 0, 'type' => MENU_LOCAL_TASK, - 'context' => MENU_CONTEXT_INLINE, + 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE, 'file' => 'node.pages.inc', ); $items['node/%node/delete'] = array( @@ -1791,7 +1791,6 @@ function node_menu() { 'access arguments' => array(1), 'weight' => 2, 'type' => MENU_LOCAL_TASK, - 'context' => MENU_CONTEXT_INLINE, 'file' => 'node.pages.inc', ); $items['node/%node/revisions/%node_revision/view'] = array( diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php index 9f65f1c..93cc8d4 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php @@ -12,13 +12,6 @@ */ class TermTest extends TaxonomyTestBase { - /** - * Modules to enable. - * - * @var array - */ - public static $modules = array('taxonomy', 'contextual'); - public static function getInfo() { return array( 'name' => 'Taxonomy term functions and forms', @@ -29,7 +22,7 @@ public static function getInfo() { function setUp() { parent::setUp(); - $this->admin_user = $this->drupalCreateUser(array('administer taxonomy', 'bypass node access', 'access contextual links')); + $this->admin_user = $this->drupalCreateUser(array('administer taxonomy', 'bypass node access')); $this->drupalLogin($this->admin_user); $this->vocabulary = $this->createVocabulary();