function ImageFieldTestCase::setUp
Overrides DrupalWebTestCase::setUp
4 calls to ImageFieldTestCase::setUp()
- ImageAdminStylesUnitTest::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageAdminUiTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageFieldDefaultImagesTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageStylesHTTPHeadersTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
4 methods override ImageFieldTestCase::setUp()
- ImageAdminStylesUnitTest::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageAdminUiTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageFieldDefaultImagesTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
- ImageStylesHTTPHeadersTestCase::setUp in modules/
image/ image.test - Sets up a Drupal site for running functional and integration tests.
File
-
modules/
image/ image.test, line 33
Class
- ImageFieldTestCase
- This class provides methods specifically for testing Image's field handling.
Code
function setUp() {
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules[] = 'image';
parent::setUp($modules);
$this->admin_user = $this->drupalCreateUser(array(
'access content',
'access administration pages',
'administer site configuration',
'administer content types',
'administer nodes',
'create article content',
'edit any article content',
'delete any article content',
'administer image styles',
'administer fields',
));
$this->drupalLogin($this->admin_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.