Skip to content

Instantly share code, notes, and snippets.

@tamasd
Created November 23, 2012 12:32
Show Gist options
  • Save tamasd/4135429 to your computer and use it in GitHub Desktop.
Save tamasd/4135429 to your computer and use it in GitHub Desktop.
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