Esempio n. 1
0
 function setUp()
 {
     parent::setUp();
     // Run the install hook.
     // @TODO: figure out why this is necessary.
     module_load_install('domain_access');
     domain_access_install();
 }
Esempio n. 2
0
 function setUp()
 {
     parent::setUp();
     // Run the install hook.
     // @TODO: figure out why this is necessary.
     module_load_install('domain_access');
     domain_access_install();
     // Set the access handler.
     $this->accessHandler = \Drupal::entityManager()->getAccessControlHandler('node');
     // Clear permissions for authenticated users.
     $this->config('user.role.' . DRUPAL_AUTHENTICATED_RID)->set('permissions', array())->save();
 }
 public function setUp()
 {
     parent::setUp();
     // Clear permissions for authenticated users.
     $this->config('user.role.' . RoleInterface::AUTHENTICATED_ID)->set('permissions', array())->save();
     // Create Basic page node type.
     if ($this->profile != 'standard') {
         $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page', 'display_submitted' => FALSE));
     }
     $this->accessHandler = \Drupal::entityManager()->getAccessControlHandler('node');
     $this->manager = \Drupal::service('domain_access.manager');
     // Create 5 domains.
     $this->domainCreateTestDomains(5);
     // Run the install hook.
     // @TODO: figure out why this is necessary.
     module_load_install('domain_access');
     domain_access_install();
 }