Permalink
Browse files

update test handler

  • Loading branch information...
1 parent 5db8eec commit e43e9e23a9d9b04888e7a5d4376217b4e20c4737 @rbran100 rbran100 committed Apr 24, 2012
@@ -0,0 +1,12 @@
+diff --git a/og/og.info b/og/og.info
+index 92d01b6..bf1c772 100644
+--- a/og/og.info
++++ b/og/og.info
+@@ -5,6 +5,7 @@ dependencies[] = options
+ dependencies[] = list
+ dependencies[] = entity
+ dependencies[] = entityreference
++dependencies[] = text
+ core = 7.x
+
+ files[] = og.module
@@ -5,6 +5,7 @@ dependencies[] = options
dependencies[] = list
dependencies[] = entity
dependencies[] = entityreference
+dependencies[] = text
core = 7.x
files[] = og.module
@@ -34,7 +34,7 @@ class VsiteAccessTest extends OpenscholarWebTestCase {
* Set up test.
*/
public function setUp(){
- parent::setUp('field_ui', 'context', 'purl', 'spaces', 'og', 'spaces_og', 'os', 'entityreference', 'features', 'os_links','vsite','vsite_domain');
+ parent::setUp('purl', 'spaces', 'og', 'spaces_og', 'os_links','vsite','vsite_domain');
// Create a user with access to add a link
$this->user1 = $this->drupalCreateUser(array('create link content'));
@@ -11,6 +11,7 @@ dependencies[] = color
dependencies[] = comment
dependencies[] = contextual
dependencies[] = dashboard
+dependencies[] = filter
dependencies[] = help
dependencies[] = image
dependencies[] = list
@@ -184,7 +184,7 @@ class OpenscholarWebTestCase extends DrupalWebTestCase {
// Although the profile module is marked as required, it needs to go after
// every dependency, including non-required ones. So clear its required
// flag for now to allow it to install late.
- $files[$install_state['parameters']['profile']]->info['required'] = FALSE;
+ $files[$this->profile]->info['required'] = FALSE;
// Add modules that other modules depend on.
foreach ($modules as $module) {
if ($files[$module]->requires) {
@@ -202,8 +202,11 @@ class OpenscholarWebTestCase extends DrupalWebTestCase {
}
}
- module_enable($required);
- module_enable($non_required);
+ arsort($required);
+ arsort($non_required);
+
+ module_enable(array_keys($required));
+ module_enable(array_keys($non_required));
$this->install_flavor();

0 comments on commit e43e9e2

Please sign in to comment.