protected function ScaldWebTestCase::setUp in Scald: Media Management made easy 7
Sets up a Drupal site for running functional and integration tests.
Overrides DrupalWebTestCase::setUp
4 calls to ScaldWebTestCase::setUp()
- ScaldAtomEntityTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
- ScaldAtomRefereneTestCase::setup in modules/
fields/ atom_reference/ atom_reference.test - ScaldDnDTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
- ScaldLocalizeTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
3 methods override ScaldWebTestCase::setUp()
- ScaldAtomEntityTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
- ScaldDnDTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
- ScaldLocalizeTestCase::setUp in tests/
scald.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
scald.test, line 14 - Tests for scald.module.
Class
- ScaldWebTestCase
- Defines a base class for testing the Scald module.
Code
protected function setUp() {
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules[] = 'scald';
parent::setUp($modules);
// Create Article node type.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType(array(
'type' => 'article',
'name' => 'Article',
));
}
}