Example #1
0
 public function testInstallAdmin()
 {
     $this->manifest['client'] = 'administrator';
     $adapter = new Installer\Adapter\Template($this->extensionPath, $this->manifest, $this->installFile);
     $adapter->install($this->target);
     $this->assertTrue(is_dir($this->target . '/administrator/templates/test'));
     $this->assertTrue(file_exists($this->target . '/administrator/templates/test/index.php'));
     $this->assertTrue(file_exists($this->target . '/administrator/language/en-GB/en-GB.tpl_test.ini'));
     $this->assertTrue(file_exists($this->target . '/administrator/language/en-GB/en-GB.tpl_test.sys.ini'));
     $this->assertTrue(file_exists($this->target . '/media/tpl_test/test.png'));
 }