function contextCase::testConfigSearchPaths

8.0.x contextTest.php contextCase::testConfigSearchPaths()
7.x contextTest.php contextCase::testConfigSearchPaths()
master contextTest.php contextCase::testConfigSearchPaths()

Assure that all possible config files get loaded.

File

tests/contextTest.php, line 84
Assure that context API behaves as designed. Mostly implicitly tested, but we do have some edges that need explicit testing. *

Namespace

Unish

Class

contextCase

Code

function testConfigSearchPaths() {
  $options = array(
    'pipe' => NULL,
    'config' => UNISH_SANDBOX,
    'root' => $this->webroot(),
    'uri' => key($this->getSites()),
  );
  $this->drush('core-status', array('Drush configuration'), $options);
  $loaded = $this->getOutputFromJSON('drush-conf');
  $loaded = array_map(array(&$this, 'convert_path'), $loaded);
  $this->assertSame($this->written, $loaded);
}