function ContextualDynamicContextTestCase::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
contextual/ contextual.test, line 22
Class
- ContextualDynamicContextTestCase
- Tests accessible links after inaccessible links on dynamic context.
Code
function setUp() {
parent::setUp(array(
'contextual',
'node',
));
$this->drupalCreateContentType(array(
'type' => 'page',
'name' => 'Basic page',
));
$this->drupalCreateContentType(array(
'type' => 'article',
'name' => 'Article',
));
$web_user = $this->drupalCreateUser(array(
'access content',
'access contextual links',
'edit any article content',
));
$this->drupalLogin($web_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.