private function siteInstallD6Case::checkVariable

8.0.x siteIntallD6Test.php private siteInstallD6Case::checkVariable($name, $value, $site)
6.x siteIntallD6Test.php private siteInstallD6Case::checkVariable($name, $value, $site)
7.x siteIntallD6Test.php private siteInstallD6Case::checkVariable($name, $value, $site)
5.x siteIntallD6Test.php private siteInstallD6Case::checkVariable($name, $value, $site)

Check the value of a Drupal variable against an expectation using drush.

Parameters

$name: The variable name.

$value: The expected value of this variable.

$site: The name of an individual multisite installation site.

1 call to siteInstallD6Case::checkVariable()
siteInstallD6Case::testExtraConfigurationOptions in tests/siteIntallD6Test.php
Test a D6 install with extra options.

File

tests/siteIntallD6Test.php, line 69

Namespace

Unish

Class

siteInstallD6Case
Tests for site-install on a Drupal 6 installation.

Code

private function checkVariable($name, $value, $site) {
  $options = array(
    'root' => $this->webroot(),
    'uri' => $site,
  );

  $this->drush('variable-get', array($name), $options);
  $this->assertEquals("$name: $value", $this->getOutput());
}