Posted by boombatower on March 31, 2010 at 6:58pm
| Project: | SimpleTest |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | boombatower |
| Status: | closed (fixed) |
Issue Summary
Add staging test case to allow for "atomic" tests that can run against production and staging sites and thus do not replicate the database locally.
Comments
#1
#2
Wrong base class before.
#3
Patch would be nice.
#4
Allow for $this->stagingUrl to be set in test itself instead of variable.
#5
I gotta say, pretty slick.
<?php
class DrupalRedesignTestCase extends DrupalStageTestCase {
public static function getInfo() {
return array(
'name' => 'AAA',
'description' => '...',
'group' => 'AAA',
);
}
protected function setUp() {
$this->stagingUrl = 'http://staging6.drupal.org';
$this->httpauth_credentials = 'drupal:drupal';
parent::setUp();
}
protected function testFoo() {
$this->drupalGet('about');
$this->assertText('Documentation');
}
}
?>
#6
shouldn't this go into the simpletest-7.x-2.x issue queue for now so it can get committed? We don't have a Drupal 8.x committer yet and I bet when the time comes, the code from simpletest-7.x-2.x can be considered for inclusion into core 8.x.
#7
Actually it has already been committed in 7.x-2.x so lets just move it there and more it fixed. We will need a general issue it merge 7.x-2.x with 8.x
#8
Automatically closed -- issue fixed for 2 weeks with no activity.
#9
For the records, DrupalStageTestCase was renamed to DrupalRemoteTestCase