Commit 8b7542dc authored by catch's avatar catch

Issue #1594628 by aspilicious, Rob Loach, Niklas Fiekas: Convert profile tests to PSR-0.

parent 30291115
......@@ -635,7 +635,7 @@ class SimpleTestInstallationProfileModuleTestsTestCase extends WebTestBase {
* - but still install the drupal_system_listing_compatible_test.module
* contained in the Testing profile.
*
* @see DrupalSystemListingCompatibleTestCase
* @see Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest
*/
protected $profile = 'testing';
......@@ -661,10 +661,10 @@ class SimpleTestInstallationProfileModuleTestsTestCase extends WebTestBase {
$this->drupalGet('admin/config/development/testing');
$this->assertText('Installation profile module tests helper');
$edit = array(
'DrupalSystemListingCompatibleTestCase' => TRUE,
'Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest' => TRUE,
);
$this->drupalPost(NULL, $edit, t('Run tests'));
$this->assertText('DrupalSystemListingCompatibleTestCase test executed.');
$this->assertText('SystemListingCompatibleTest test executed.');
}
}
......@@ -681,7 +681,7 @@ class SimpleTestOtherInstallationProfileModuleTestsTestCase extends WebTestBase
* which should not be found.
*
* @see SimpleTestInstallationProfileModuleTestsTestCase
* @see DrupalSystemListingCompatibleTestCase
* @see Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest
*/
protected $profile = 'minimal';
......
......@@ -4,4 +4,3 @@ package = Testing
version = VERSION
core = 8.x
hidden = TRUE
files[] = drupal_system_listing_compatible_test.test
<?php
/**
* Definition of Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest.
*/
namespace Drupal\drupal_system_listing_compatible_test\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Helper to verify tests in installation profile modules.
*/
class DrupalSystemListingCompatibleTestCase extends WebTestBase {
class SystemListingCompatibleTest extends WebTestBase {
/**
* Use the Minimal profile.
*
......@@ -34,7 +39,7 @@ function setUp() {
/**
* Non-empty test* method required to executed the test case class.
*/
function testDrupalSystemListing() {
function testSystemListing() {
$this->pass(__CLASS__ . ' test executed.');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment