/** * @param bool $namespaceOnly * @return string */ public function getBaseWritePath($namespaceOnly = false) { return $this->module->getSettings()->getXmlRootPath() . '/' . $this->module->getNamespace() . '/' . (!$namespaceOnly ? $this->module->getModuleName() . '/' : ''); }
/** * Tests Module->getNamespace() */ public function testGetNamespace() { $this->module->setData(['namespace' => 'Test']); $this->assertEquals('Test', $this->module->getNamespace()); $this->assertEquals('test', $this->module->getNamespace(true)); }