Commit 48f62294 authored by John Fiala's avatar John Fiala
Browse files

By jcfiala: Fixed broken token tests - setUp on LinkBaseTestClass was broken.

parent 0b3bcb91
...@@ -20,8 +20,8 @@ class LinkBaseTestClass extends DrupalWebTestCase { ...@@ -20,8 +20,8 @@ class LinkBaseTestClass extends DrupalWebTestCase {
function setUp() { function setUp() {
$modules = func_get_args(); $modules = func_get_args();
$modules = (isset($modules[0]) && is_array($modules[0]) ? $modules[0] : $modules); $modules = (isset($modules[0]) && is_array($modules[0]) ? $modules[0] : $modules);
$modules = 'field_ui'; $modules[] = 'field_ui';
$modules = 'link'; $modules[] = 'link';
parent::setUp($modules); parent::setUp($modules);
$this->web_user = $this->drupalCreateUser($this->permissions); $this->web_user = $this->drupalCreateUser($this->permissions);
......
...@@ -28,9 +28,6 @@ class LinkTokenTest extends LinkBaseTestClass { ...@@ -28,9 +28,6 @@ class LinkTokenTest extends LinkBaseTestClass {
* Creates a node with a token in the link title and checks the value. * Creates a node with a token in the link title and checks the value.
*/ */
function testUserTokenLinkCreate() { function testUserTokenLinkCreate() {
/*$this->web_user = $this->drupalCreateUser(array('administer content types', 'access content', 'create page content'));
$this->drupalLogin($this->web_user);*/
// create field // create field
$settings = array( $settings = array(
'instance[settings][enable_tokens]' => 1, 'instance[settings][enable_tokens]' => 1,
......
Supports Markdown
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