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

Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSizeStatusTest resultOperations
758662-staging.patch4.76 KBIgnored: Check issue status.NoneNone

#2

Wrong base class before.

#3

Patch would be nice.

AttachmentSizeStatusTest resultOperations
758662-staging.patch4.76 KBIgnored: Check issue status.NoneNone

#4

Allow for $this->stagingUrl to be set in test itself instead of variable.

AttachmentSizeStatusTest resultOperations
758662-staging.patch4.78 KBIgnored: Check issue status.NoneNone

#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

Project:Drupal core» SimpleTest
Version:8.x-dev» 7.x-2.x-dev
Component:simpletest.module» Code
Status:needs review» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

For the records, DrupalStageTestCase was renamed to DrupalRemoteTestCase

nobody click here