diff --git a/tests/title.test b/tests/title.test index 2f61366..6615b0f 100644 --- a/tests/title.test +++ b/tests/title.test @@ -1,10 +1,5 @@ profile = 'testing'; - parent::setUp('entity', 'field_test', 'title', 'title_test', 'taxonomy', 'comment'); + function setUp(array $modules = array()) { + $modules[] = 'entity'; + $modules[] = 'field_test'; + $modules[] = 'title'; + $modules[] = 'title_test'; + $modules[] = 'taxonomy'; + $modules[] = 'comment'; + parent::setUp($modules); } /** @@ -176,12 +181,20 @@ public static function getInfo() { ); } + /** + * Use the barebones "testing" installation profile. + */ + protected $profile = 'testing'; + /** * {@inheritdoc} */ - protected function setUp() { - $this->profile = 'testing'; - parent::setUp('field_test', 'title', 'title_test', 'taxonomy'); + function setUp(array $modules = array()) { + $modules[] = 'field_test'; + $modules[] = 'title'; + $modules[] = 'title_test'; + $modules[] = 'taxonomy'; + parent::setUp($modules); $admin_user = $this->drupalCreateUser(array('administer site configuration', 'administer taxonomy')); $this->drupalLogin($admin_user); } @@ -236,12 +249,22 @@ public static function getInfo() { ); } + /** + * Use the barebones "testing" installation profile. + */ + protected $profile = 'testing'; + /** * {@inheritdoc} */ - protected function setUp() { - $this->profile = 'testing'; - parent::setUp('locale', 'entity_translation', 'title', 'field_test', 'title_test', 'taxonomy'); + function setUp(array $modules = array()) { + $modules[] = 'locale'; + $modules[] = 'entity_translation'; + $modules[] = 'title'; + $modules[] = 'field_test'; + $modules[] = 'title_test'; + $modules[] = 'taxonomy'; + parent::setUp($modules); // Create a power user. $permissions = array(