You are here

protected function PropertiesTemplateBaseTestCase::loginTemplateUser in Dynamic properties 7

Log in with administrative permissions.

Admin user is created on-demand.

1 call to PropertiesTemplateBaseTestCase::loginTemplateUser()
PropertiesTemplateTestCase::testPropertyFieldCreation in properties_template/properties_template.test
Create a content based on a template.

File

properties_template/properties_template.test, line 43
Contains tests for the properties_template.module

Class

PropertiesTemplateBaseTestCase
Base class for properties tests, provides helper methods.

Code

protected function loginTemplateUser() {
  if (empty($this->templateUser)) {
    $this->templateUser = $this
      ->drupalCreateUser(array(
      'create page content',
      'edit own page content',
      'add properties templates',
    ));
  }
  $this
    ->drupalLogin($this->templateUser);
}