public function testBasicSetMainTemplatePath() { $o = new ModuleMap('.*', __FILE__); $this->assertEmpty($o->getMainTemplate()); $path = VSC_FIXTURE_PATH . 'templates/'; $tpl = 'main.tpl.php'; $o->setMainTemplatePath($path); $o->setMainTemplate($tpl); $this->assertEquals($tpl, $o->getMainTemplate()); }
public function testEmptyAtInitialization() { $o = new ModuleMap('.*', __FILE__); $this->assertEmpty($o->getMainTemplate()); }