Example #1
0
 /**
  * Define setup tasks.
  */
 public function setUp()
 {
     parent::setUp();
     // Create and login user.
     $this->webUser = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer content types', 'administer nodes', 'administer node fields', 'administer node display', 'bypass node access'));
     $this->drupalLogin($this->webUser);
     // Prep a node with an image/file field and create a test entity.
     $this->initNode();
     // Activte the field formatter for our new node instance.
     $this->activateJuiceboxFieldFormatter();
 }
Example #2
0
 /**
  * Define setup tasks.
  */
 public function setUp()
 {
     parent::setUp();
     // Create and login user.
     $this->webUser = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer content types', 'administer nodes', 'bypass node access', 'access contextual links', 'use text format basic_html'));
     $this->drupalLogin($this->webUser);
     // Create a test node. Note that we don't need to initiate a node and field
     // structure before this because that's been handled for us by
     // juicebox_mimic_article.
     $this->createNodeWithFile('image', FALSE, FALSE);
     // Start all cases as an anon user.
     $this->drupalLogout();
 }
 /**
  * Define setup tasks.
  */
 public function setUp($import_test_views = TRUE)
 {
     parent::setUp($import_test_views);
     // Create and login user.
     $this->webUser = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer content types', 'administer nodes', 'bypass node access'));
     $this->drupalLogin($this->webUser);
     // Create a test node. Note that we don't need to initiate a node and field
     // structure before this because that's been handled for us by
     // juicebox_mimic_article.
     $this->createNodeWithFile('image', FALSE, FALSE);
     // Enable our test views.
     if ($import_test_views) {
         ViewTestData::createTestViews(get_class($this), array('juicebox_test_views'));
     }
     // Start all cases as an anon user.
     $this->drupalLogout();
 }
 /**
  * Define setup tasks.
  */
 public function setUp()
 {
     parent::setUp();
     // Create and login user.
     // @todo: Reactivate translation perms when issue #2573975 is resolved.
     // $this->webUser = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer content types', 'administer nodes', 'administer node fields', 'administer node display', 'bypass node access', 'administer languages', 'translate interface'));
     $this->webUser = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer content types', 'administer nodes', 'administer node fields', 'administer node display', 'bypass node access'));
     $this->drupalLogin($this->webUser);
     // Prep a node with an image/file field and create a test entity.
     $this->initNode();
     // Activte the field formatter for our new node instance.
     $this->activateJuiceboxFieldFormatter();
     // Create a test node.
     $this->createNodeWithFile();
     // Start all cases as an anon user.
     $this->drupalLogout();
 }