cheque module

This commit is contained in:
Etienne Roudeix
2013-09-18 16:23:10 +02:00
parent 45106f24bd
commit b8c2bdc8df
4 changed files with 19 additions and 17 deletions

View File

@@ -58,13 +58,13 @@ class Cheque extends BaseModule implements PaymentModuleInterface
// TODO: Implement pay() method.
}
/**
* YOU HAVE TO IMPLEMENT HERE ABSTRACT METHODD FROM BaseModule Class
* Like install and destroy
*/
public function install()
{
// TODO: Implement install() method.
/* insert the images from image folder if first module activation */
$module = $this->getModuleModel();
if(ModuleImageQuery::create()->filterByModule($module)->count() == 0) {
$this->deployImageFolder($module, sprintf('%s/images', __DIR__));
}
}
public function destroy()

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -45,10 +45,8 @@ class FakeCBTest extends BaseModuleTestor
public function testInstall()
{
$fakeCB = new FakeCB();
//$fakeCB = new FakeCB();
$fakeCB->install();
$out = true;
//$fakeCB->install();
}
}