Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @file
* Test case for Drupal tests using a given install profile.
*
* Based on work that is copyright 2008-2009 by Jimmy Berry ("boombatower", http://drupal.org/user/214218)
*/
class ProvisionWebTestCase extends DrupalWebTestCase {
protected function getProfileName() {
<?php
/**
* This file goes in ~/.drush/
* Rename to GROUPNAME.aliases.drushrc.php
*
* Examples (run from any path on your local environment):
*
* drush @example.dev status
* drush sql-sync @example.stage @example.dev
*
#!/bin/bash
# Sync a Drupal database and contents of files directory between two
# development environments.
#
# Execute this script on the destination (DEST) server.
# A MEMBERNAME.aliases.drushrc.php file is required on the SOURCE server.
# See http://gist.github.com/421721 and remove example.local alias
core = 6.x
projects[] = drupal
; Profile
projects[simple][type] = "profile"
projects[simple][download][type] = "git"
projects[simple][download][url] = "git://github.com/sprice/simple.git"
; Features
projects[simple_context][subdir] = "features"
core = 6.x
projects[drupal][version] = 6.17
; Contrib
projects[admin][subdir] = "contrib"
projects[admin][version] = "2.0-beta4"
projects[rules][subdir] = "contrib"
projects[rules][version] = "1.2"
core = "6.x"
projects[openatrium][type] = "profile"
projects[openatrium][download][type] = "cvs"
projects[openatrium][download][date] = 2010-06-26
projects[openatrium][download][root] = ":pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib"
projects[openatrium][download][module] = "contributions/profiles/openatrium"
diff --git atrium/tests/atrium.test atrium/tests/atrium.test
index 51ea730..da5d38f 100644
--- atrium/tests/atrium.test
+++ atrium/tests/atrium.test
@@ -77,7 +77,7 @@ class AtriumTest extends AtriumWebTestCase {
*/
function test403() {
$this->drupalLogout();
- $this->drupalGet('node');
+ $this->drupalGet("node/{$this->atriumGroups['private']->nid}");
diff --git atrium_test/atrium_web_test_case.php atrium_test/atrium_web_test_case.php
index 8c04bc3..09987d7 100644
--- atrium_test/atrium_web_test_case.php
+++ atrium_test/atrium_web_test_case.php
@@ -108,6 +108,9 @@ class AtriumWebTestCase extends DrupalWebTestCase {
variable_set('install_task', 'profile-finished');
variable_set('clean_url', $clean_url_original);
variable_set('site_mail', 'simpletest@example.com');
+ // Use the test mail class instead of the default mail handler class.
+ // variable_set('mail_sending_system', array('default-system' => 'TestingMailSystem'));
core=6.x
projects[] = drupal
projects[privatemsg][type] = module
projects[privatemsg][subdir] = contrib
projects[privatemsg][download][type] = cvs
projects[privatemsg][download][module] = contributions/modules/privatemsg
projects[privatemsg][download][revision] = HEAD:2010-08-20
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>