示例#1
0
 public function testZipBackend()
 {
     $infoService = new \Shopware\PluginInfo\PluginInfo(new \Shopware\PluginInfo\Backend\Zip());
     $info = $infoService->get(__DIR__ . '/assets/SwagTestPlugin.zip');
     $this->assertEquals(true, $info->isCompatibleWith('4.2.0'));
 }
示例#2
0
 /**
  * @return \PluginInfo\InfoDecorator
  */
 private function getInfo()
 {
     $infoService = new \Shopware\PluginInfo\PluginInfo(new \Shopware\PluginInfo\Backend\Directory());
     $info = $infoService->get(__DIR__ . '/assets/Backend/SwagTestPlugin');
     return $info;
 }
 public function testArray()
 {
     $infoService = new \Shopware\PluginInfo\PluginInfo();
     $info = $infoService->get(array("json" => array('label' => array('de' => 'test', 'en' => 'test'), 'changelog' => array('de' => array('1.0.0' => 'test')), 'currentVersion' => '1.0.0')));
     $this->assertEquals(true, $info->isCompatibleWith('4.2.0'));
 }