Example #1
0
 public function testSetThemePath()
 {
     $config = new Standard(TEST_ROOT);
     $theme = ['theme' => 'test'];
     $config->setThemePath($theme);
     $this->assertEquals(Path::fromString(TEST_ROOT . '/theme/test'), $config->getPath('theme'));
     $theme = ['theme' => 'test', 'theme_path' => '/testpath'];
     $config->setThemePath($theme);
     $this->assertEquals(Path::fromString(TEST_ROOT . '/testpath/test'), $config->getPath('theme'));
 }