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()

File

tests/siteIntallD6Test.php, line 68

Class

siteInstallD6Case

Code

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

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