function ReferenceOptionLimitProfile2TestCase::setUp in Reference field option limit 7
Implements setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
reference_option_limit.test, line 621 - Contains tests for the Reference option limit module.
Class
- ReferenceOptionLimitProfile2TestCase
- Test use of the module on a Profile2 entity.
Code
function setUp() {
parent::setUp(array(
'reference_option_limit',
'reference_option_limit_test_entityreference',
'profile2',
'reference_option_limit_test_profile2',
));
// Create our creator user.
$this->user = $this
->drupalCreateUser(array(
'edit own test_rol profile',
));
$this
->drupalLogin($this->user);
}