public function PhonefieldBaseTestClass::setUp in Phone Field 7
Setup.
Overrides DrupalWebTestCase::setUp
File
- tests/
phonefield.test, line 28 - Phonefield base test file. Common functions for testing phonefields.
Class
- PhonefieldBaseTestClass
- Base Test Class.
Code
public function setUp() {
$modules = func_get_args();
$modules = isset($modules[0]) && is_array($modules[0]) ? $modules[0] : $modules;
$modules[] = 'field';
$modules[] = 'phonefield';
parent::setUp($modules);
$this->web_user = $this
->drupalCreateUser($this->permissions);
$this
->drupalLogin($this->web_user);
}