Created
November 23, 2012 12:32
-
-
Save tamasd/4135429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserTest extends DrupalWebTestCase { | |
public static function getInfo() { | |
return array( | |
'name' => 'Administrator user', 'description' => 'an administrator needs to be able to access the admin menu.', | |
'group' => 'Drucumber', | |
); | |
} public function setUp() { | |
parent::setUp(); | |
$user = $this->drupalCreateUser(array('administer site',)); | |
$this->drupalLogin($user); | |
} public function testLink() { | |
$this->assertRaw('href="admin"', 'The specified link (admin) does not exists.'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment