Last active
November 30, 2016 19:06
-
-
Save santerref/e68bdbd7d8986760e46d6ff23d385ea4 to your computer and use it in GitHub Desktop.
Create an administrator account within Drupal 7 SimpleTest.
This file contains 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
<?php | |
class TrashTestCase extends DrupalWebTestCase { | |
# [...] | |
public function testAdminContentNodesList() { | |
# Administrator account | |
$permissions = module_invoke_all('permission'); | |
$permissions = array_keys($permissions); | |
$account = $this->drupalCreateUser($permissions); | |
# [...] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment