Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing testProd PHPUnit test. #771

Merged
merged 1 commit into from
Dec 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions tests/phpunit/BltProject/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@
*/
class SettingsTest extends BltProjectTestBase {

/**
* Sets up require parameters for tests to run.
*
* @param string $env
* The acquia environment being simulated. E.g., prod, test, dev, etc.
*/
public function setupParams($env) {
$_ENV['AH_SITE_ENVIRONMENT'] = $env;
$_ENV['AH_SITE_NAME'] = $_ENV['AH_SITE_GROUP'] = 'blt';
// @codingStandardsIgnoreStart
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
// @codingStandardsIgnoreEnd
if (!defined('DRUPAL_ROOT')) {
define('DRUPAL_ROOT', $this->drupalRoot);
}
}

/**
* Test configuration for production environment on ACE.
*
* @group blt-project
*/
public function testProd() {
$this->setupParams('prod');
require $this->drupalRoot . '/sites/default/settings.php';

$this->assertContains($config['system.logging']['error_level'], 'hide');
}

/**
* Tests Phing setup:drupal:settings target.
*
Expand Down