Version Notes
0.9.2 Release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Fooman_EmailAttachments |
Version | 0.9.3 |
Comparing to | |
See all releases |
Code changes from version 0.9.2 to 0.9.3
- app/code/community/Fooman/Common/.hg/00changelog.i +0 -0
- app/code/community/Fooman/Common/.hg/branch +0 -1
- app/code/community/Fooman/Common/.hg/branchheads.cache +0 -2
- app/code/community/Fooman/Common/.hg/dirstate +0 -0
- app/code/community/Fooman/Common/.hg/hgrc +0 -2
- app/code/community/Fooman/Common/.hg/requires +0 -3
- app/code/community/Fooman/Common/.hg/store/00changelog.i +0 -0
- app/code/community/Fooman/Common/.hg/store/00manifest.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/_common/_helper/_data.php.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/_common/etc/config.xml.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/_common/etc/system.xml.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/_helper/_data.php.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/etc/config.xml.i +0 -0
- app/code/community/Fooman/Common/.hg/store/data/etc/system.xml.i +0 -0
- app/code/community/Fooman/Common/.hg/store/fncache +0 -6
- app/code/community/Fooman/Common/.hg/tags.cache +0 -2
- app/code/community/Fooman/EmailAttachments/Test/Config/All.php +0 -64
- app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/Abstract.php +0 -82
- app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/OrderController.php +0 -57
- app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/OrderController/fixtures/OrderController.yaml +0 -91
- app/code/community/Fooman/EmailAttachments/Test/Model/Observer.php +0 -59
- app/code/community/Fooman/EmailAttachments/Test/Model/Observer/fixtures/Observer.yaml +0 -91
- app/code/community/Fooman/EmailAttachments/Test/Readme.md +0 -2
- app/code/community/Fooman/EmailAttachments/etc/config.xml +1 -1
- package.xml +3 -3
app/code/community/Fooman/Common/.hg/00changelog.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/branch
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
default
|
|
app/code/community/Fooman/Common/.hg/branchheads.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
0c65e9e256c94202750f878187d277c15a7aa273 1
|
2 |
-
0c65e9e256c94202750f878187d277c15a7aa273 default
|
|
|
|
app/code/community/Fooman/Common/.hg/dirstate
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/hgrc
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
[paths]
|
2 |
-
default = /media/Projects-Raid/FM0042 Fooman Common/codeCommonOnly
|
|
|
|
app/code/community/Fooman/Common/.hg/requires
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
revlogv1
|
2 |
-
store
|
3 |
-
fncache
|
|
|
|
|
|
app/code/community/Fooman/Common/.hg/store/00changelog.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/00manifest.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/_common/_helper/_data.php.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/_common/etc/config.xml.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/_common/etc/system.xml.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/_helper/_data.php.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/etc/config.xml.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/data/etc/system.xml.i
DELETED
Binary file
|
app/code/community/Fooman/Common/.hg/store/fncache
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
data/Common/Helper/Data.php.i
|
2 |
-
data/Common/etc/config.xml.i
|
3 |
-
data/Common/etc/system.xml.i
|
4 |
-
data/Helper/Data.php.i
|
5 |
-
data/etc/config.xml.i
|
6 |
-
data/etc/system.xml.i
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/Common/.hg/tags.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
1 0c65e9e256c94202750f878187d277c15a7aa273
|
2 |
-
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Config/All.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Test class for config.xml.
|
5 |
-
*/
|
6 |
-
class Fooman_EmailAttachments_Test_Config_All extends EcomDev_PHPUnit_Test_Case_Config
|
7 |
-
{
|
8 |
-
public function testModule()
|
9 |
-
{
|
10 |
-
$this->assertModuleCodePool('community');
|
11 |
-
$this->assertModuleVersionGreaterThanOrEquals('0.9.0');
|
12 |
-
}
|
13 |
-
|
14 |
-
public function testModels()
|
15 |
-
{
|
16 |
-
$this->assertModelAlias(
|
17 |
-
'core/email_template_mailer',
|
18 |
-
'Fooman_EmailAttachments_Model_Core_Email_Template_Mailer'
|
19 |
-
);
|
20 |
-
}
|
21 |
-
|
22 |
-
public function testEvents()
|
23 |
-
{
|
24 |
-
|
25 |
-
$this->assertEventObserverDefined(
|
26 |
-
'adminhtml',
|
27 |
-
'core_block_abstract_prepare_layout_after',
|
28 |
-
'emailattachments/observer',
|
29 |
-
'addbutton'
|
30 |
-
);
|
31 |
-
$this->assertEventObserverDefined(
|
32 |
-
'global',
|
33 |
-
'fooman_emailattachments_before_send_order',
|
34 |
-
'emailattachments/observer',
|
35 |
-
'beforeSendOrder'
|
36 |
-
);
|
37 |
-
$this->assertEventObserverDefined(
|
38 |
-
'global',
|
39 |
-
'fooman_emailattachments_before_send_invoice',
|
40 |
-
'emailattachments/observer',
|
41 |
-
'beforeSendInvoice'
|
42 |
-
);
|
43 |
-
$this->assertEventObserverDefined(
|
44 |
-
'global',
|
45 |
-
'fooman_emailattachments_before_send_shipment',
|
46 |
-
'emailattachments/observer',
|
47 |
-
'beforeSendShipment'
|
48 |
-
);
|
49 |
-
$this->assertEventObserverDefined(
|
50 |
-
'global',
|
51 |
-
'fooman_emailattachments_before_send_creditmemo',
|
52 |
-
'emailattachments/observer',
|
53 |
-
'beforeSendCreditmemo'
|
54 |
-
);
|
55 |
-
}
|
56 |
-
|
57 |
-
public function testConfig()
|
58 |
-
{
|
59 |
-
$this->assertConfigNodeHasChild('global/helpers', 'emailattachments');
|
60 |
-
$this->assertConfigNodeValue('global/helpers/emailattachments/class', 'Fooman_EmailAttachments_Helper');
|
61 |
-
$this->assertConfigNodeHasChild('global/models', 'emailattachments');
|
62 |
-
$this->assertConfigNodeValue('global/models/emailattachments/class', 'Fooman_EmailAttachments_Model');
|
63 |
-
}
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/Abstract.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
abstract class Fooman_EmailAttachments_Test_Controller_Admin_Abstract extends EcomDev_PHPUnit_Test_Case_Controller
|
3 |
-
{
|
4 |
-
const FAKE_USER_ID = 1;
|
5 |
-
const FAKE_USER_NAME= 'fakeuser';
|
6 |
-
|
7 |
-
public function setUp()
|
8 |
-
{
|
9 |
-
parent::setUp();
|
10 |
-
$this->createAdminSession();
|
11 |
-
}
|
12 |
-
public function tearDown()
|
13 |
-
{
|
14 |
-
$adminSession = Mage::getSingleton('admin/session');
|
15 |
-
$adminSession->unsetAll();
|
16 |
-
$adminSession->getCookie()->delete($adminSession->getSessionName());
|
17 |
-
parent::tearDown();
|
18 |
-
}
|
19 |
-
|
20 |
-
protected function createAdminSession()
|
21 |
-
{
|
22 |
-
$this->_registerAdminUserMock();
|
23 |
-
Mage::getSingleton('adminhtml/url')->turnOffSecretKey();
|
24 |
-
$adminSessionMock = $this->getModelMock('admin/session', array('renewSession','isAllowed'));
|
25 |
-
|
26 |
-
$adminSessionMock->expects($this->any())
|
27 |
-
->method('isAllowed')
|
28 |
-
->will($this->returnValue(true));
|
29 |
-
$this->replaceByMock('singleton', 'admin/session', $adminSessionMock);
|
30 |
-
$adminSessionMock->login('fakeuser', 'fakeuser_pass');
|
31 |
-
return $adminSessionMock;
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Creates a mock object for admin/user Magento Model
|
36 |
-
*
|
37 |
-
* @return My_Module_Test_Controller_Adminhtml_Controller
|
38 |
-
*/
|
39 |
-
protected function _registerAdminUserMock()
|
40 |
-
{
|
41 |
-
$user = $this->getModelMock('admin/user');
|
42 |
-
$user->expects($this->any())->method('getId')->will($this->returnValue(self::FAKE_USER_ID));
|
43 |
-
$user->expects($this->any())->method('getUserName')->will($this->returnValue(self::FAKE_USER_NAME));
|
44 |
-
$user->expects($this->any())->method('load')->will($this->returnSelf());
|
45 |
-
$this->replaceByMock('model', 'admin/user', $user);
|
46 |
-
return $this;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* Test whether fake user successfully logged in
|
50 |
-
*/
|
51 |
-
public function testLoggedIn()
|
52 |
-
{
|
53 |
-
$this->assertTrue(Mage::getSingleton('admin/session')->isLoggedIn());
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* Test whether logged user is fake
|
57 |
-
*/
|
58 |
-
public function testLoggedUserIsFakeUser()
|
59 |
-
{
|
60 |
-
$this->assertEquals(self::FAKE_USER_ID, Mage::getSingleton('admin/session')->getUser()->getId());
|
61 |
-
$this->assertEquals(self::FAKE_USER_NAME, Mage::getSingleton('admin/session')->getUser()->getUserName());
|
62 |
-
$this->assertEquals(self::FAKE_USER_NAME, Mage::getModel('admin/user')->load(self::FAKE_USER_ID)->getUserName());
|
63 |
-
}
|
64 |
-
|
65 |
-
protected function _workaroundAdminMenuIssue()
|
66 |
-
{
|
67 |
-
$menuBlock = $this->getBlockMock('adminhtml/page_menu', array('_toHtml'));
|
68 |
-
$menuBlock->expects($this->any())
|
69 |
-
->method('_toHtml')
|
70 |
-
->will($this->returnCallback($this, '_getAdminhtmlPageMenuTemplate'));
|
71 |
-
$this->replaceByMock('block', 'adminhtml/page_menu', $menuBlock);
|
72 |
-
}
|
73 |
-
|
74 |
-
protected function _getAdminhtmlPageMenuTemplate()
|
75 |
-
{
|
76 |
-
if (function_exists('drawMenuLevel')) {
|
77 |
-
return '';
|
78 |
-
}
|
79 |
-
return Mage::getModel('adminhtml/page_menu')->renderView();
|
80 |
-
}
|
81 |
-
|
82 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/OrderController.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* @loadSharedFixture OrderController.yaml
|
4 |
-
*/
|
5 |
-
class Fooman_EmailAttachments_Test_Controller_Admin_OrderController
|
6 |
-
extends Fooman_EmailAttachments_Test_Controller_Admin_Abstract
|
7 |
-
{
|
8 |
-
|
9 |
-
private $_helper = '';
|
10 |
-
private $_section = 'emailattachments';
|
11 |
-
private $_group = 'settings';
|
12 |
-
private $_field = 'activated';
|
13 |
-
|
14 |
-
public function setUp()
|
15 |
-
{
|
16 |
-
$this->_helper = Mage::helper('foomantesting');
|
17 |
-
$this->_helper->setSection($this->_section);
|
18 |
-
$this->_helper->setGroup($this->_group);
|
19 |
-
$this->_helper->setField($this->_field);
|
20 |
-
parent::setUp();
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Test loading and rendering of index action
|
25 |
-
*
|
26 |
-
* @return null
|
27 |
-
*/
|
28 |
-
public function testPrintAction()
|
29 |
-
{
|
30 |
-
$order = $this->_helper->placeOrder(1);
|
31 |
-
Mage::register('isSecureArea', true);
|
32 |
-
$this->getRequest()->setMethod('POST')
|
33 |
-
->setPost('order_id', $order->getId());
|
34 |
-
|
35 |
-
$expectedRoute = 'emailattachments/admin_order/print';
|
36 |
-
$this->dispatch($expectedRoute);
|
37 |
-
}
|
38 |
-
|
39 |
-
public function testSalesOrderViewHasPrintButton()
|
40 |
-
{
|
41 |
-
$order = $this->_helper->placeOrder(1);
|
42 |
-
$expectedRoute = 'adminhtml/sales_order/view/order_id/'.$order->getId();
|
43 |
-
//$this->dispatch($expectedRoute);
|
44 |
-
$this->assertResponseBodyContains('Print', true);
|
45 |
-
if (Mage::helper('core')->isModuleEnabled('Fooman_PdfCustomiser')) {
|
46 |
-
$this->assertResponseBodyContains('pdfcustomiser/adminhtml_sales_order/print');
|
47 |
-
} else {
|
48 |
-
$this->assertResponseBodyContains('emailattachments/admin_order/print');
|
49 |
-
}
|
50 |
-
}
|
51 |
-
|
52 |
-
public function tearDown()
|
53 |
-
{
|
54 |
-
///$this->_helper->deleteOrdersAndQuotes();
|
55 |
-
parent::tearDown();
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Controller/Admin/OrderController/fixtures/OrderController.yaml
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
tables:
|
2 |
-
directory/country_region:
|
3 |
-
- region_id: 16
|
4 |
-
country_id: US
|
5 |
-
code: DC
|
6 |
-
default_name: District of Columbia
|
7 |
-
|
8 |
-
eav/entity_store:
|
9 |
-
|
10 |
-
scope:
|
11 |
-
website: # Initialize websites
|
12 |
-
- website_id: 2
|
13 |
-
code: usa_website
|
14 |
-
name: USA Website
|
15 |
-
default_group_id: 2
|
16 |
-
- website_id: 3
|
17 |
-
code: canada_website
|
18 |
-
name: Canada Website
|
19 |
-
default_group_id: 3
|
20 |
-
- website_id: 4
|
21 |
-
code: german_website
|
22 |
-
name: German Website
|
23 |
-
default_group_id: 4
|
24 |
-
group: # Initializes store groups
|
25 |
-
- group_id: 2
|
26 |
-
website_id: 2
|
27 |
-
name: USA Store Group
|
28 |
-
default_store_id: 2
|
29 |
-
root_category_id: 2 # Default Category
|
30 |
-
- group_id: 3
|
31 |
-
website_id: 3
|
32 |
-
name: Canada Store Group
|
33 |
-
default_store_id: 3
|
34 |
-
root_category_id: 2 # Default Category
|
35 |
-
- group_id: 4
|
36 |
-
website_id: 4
|
37 |
-
name: German Store Group
|
38 |
-
default_store_id: 4
|
39 |
-
root_category_id: 2 # Default Category
|
40 |
-
store: # Initializes store views
|
41 |
-
- store_id: 2
|
42 |
-
website_id: 2
|
43 |
-
group_id: 2
|
44 |
-
code: usa
|
45 |
-
name: USA Store
|
46 |
-
is_active: 1
|
47 |
-
- store_id: 3
|
48 |
-
website_id: 3
|
49 |
-
group_id: 3
|
50 |
-
code: canada
|
51 |
-
name: Canada Store
|
52 |
-
is_active: 1
|
53 |
-
- store_id: 4
|
54 |
-
website_id: 4
|
55 |
-
group_id: 4
|
56 |
-
code: germany
|
57 |
-
name: Germany Store
|
58 |
-
is_active: 1
|
59 |
-
config:
|
60 |
-
default/catalog/price/scope: 1 # Set price scope to website
|
61 |
-
default/dev/log/active: 1
|
62 |
-
default/dev/log/file: tests-system.log
|
63 |
-
default/dev/log/exception_file: tests-exception.log
|
64 |
-
eav:
|
65 |
-
catalog_product:
|
66 |
-
- entity_id: 1
|
67 |
-
type_id: simple
|
68 |
-
sku: book
|
69 |
-
name: Book
|
70 |
-
short_description: Book
|
71 |
-
description: Book
|
72 |
-
url_key: book
|
73 |
-
stock:
|
74 |
-
qty: 100.00
|
75 |
-
is_in_stock: 1
|
76 |
-
website_ids:
|
77 |
-
- usa_website
|
78 |
-
- canada_website
|
79 |
-
- german_website
|
80 |
-
category_ids:
|
81 |
-
- 2 # Default Category
|
82 |
-
price: 12.99
|
83 |
-
tax_class_id: 2 # Taxable Goods
|
84 |
-
status: 1 # Enabled
|
85 |
-
visibility: 4 # Visible in Catalog & Search
|
86 |
-
/website # Set different prices per website
|
87 |
-
usa_website:
|
88 |
-
special_price: 9.99
|
89 |
-
german_website:
|
90 |
-
price: 9.99
|
91 |
-
special_price: 5.99
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Model/Observer.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* @loadSharedFixture Observer.yaml
|
4 |
-
*/
|
5 |
-
class Fooman_EmailAttachments_Test_Model_Observer extends Fooman_Testing_Model_Case
|
6 |
-
{
|
7 |
-
|
8 |
-
private $_helper = '';
|
9 |
-
private $_section = 'emailattachments';
|
10 |
-
private $_group = 'settings';
|
11 |
-
private $_field = 'activated';
|
12 |
-
|
13 |
-
public function setUp()
|
14 |
-
{
|
15 |
-
|
16 |
-
$this->mockAdminQuoteSession();
|
17 |
-
$this->_helper = Mage::helper('foomantesting');
|
18 |
-
$this->_helper->setSection($this->_section);
|
19 |
-
$this->_helper->setGroup($this->_group);
|
20 |
-
$this->_helper->setField($this->_field);
|
21 |
-
$initialUrlParams = array();
|
22 |
-
|
23 |
-
$baseUrl = Mage::getModel('core/url')->getBaseUrl($initialUrlParams);
|
24 |
-
Mage::app()->getRequest()->reset();
|
25 |
-
Mage::app()->getRequest()->setBaseUrl($baseUrl);
|
26 |
-
$this->mockCustomerSession(1);
|
27 |
-
$this->mockCoreSession();
|
28 |
-
$this->mockAdminUserSession();
|
29 |
-
parent::setUp();
|
30 |
-
}
|
31 |
-
|
32 |
-
public function testOrderAttachEventDispatched()
|
33 |
-
{
|
34 |
-
$this->_helper->placeOrder(1);
|
35 |
-
$this->assertEventDispatched('fooman_emailattachments_before_send_order');
|
36 |
-
}
|
37 |
-
|
38 |
-
public function testInvoiceAttachEventDispatched()
|
39 |
-
{
|
40 |
-
$order = $this->_helper->placeOrder(1);
|
41 |
-
$this->_helper->processInvoice($order);
|
42 |
-
$this->assertEventDispatched('fooman_emailattachments_before_send_invoice');
|
43 |
-
}
|
44 |
-
|
45 |
-
public function testShipmentAttachEventDispatched()
|
46 |
-
{
|
47 |
-
$order = $this->_helper->placeOrder(1);
|
48 |
-
$this->_helper->processShipment($order);
|
49 |
-
$this->assertEventDispatched('fooman_emailattachments_before_send_shipment');
|
50 |
-
}
|
51 |
-
|
52 |
-
public function testCredimemoAttachEventDispatched()
|
53 |
-
{
|
54 |
-
$order = $this->_helper->placeOrder(1);
|
55 |
-
$this->_helper->processInvoice($order);
|
56 |
-
$this->_helper->processCreditmemo($order);
|
57 |
-
$this->assertEventDispatched('fooman_emailattachments_before_send_creditmemo');
|
58 |
-
}
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Model/Observer/fixtures/Observer.yaml
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
tables:
|
2 |
-
directory/country_region:
|
3 |
-
- region_id: 16
|
4 |
-
country_id: US
|
5 |
-
code: DC
|
6 |
-
default_name: District of Columbia
|
7 |
-
|
8 |
-
eav/entity_store:
|
9 |
-
|
10 |
-
scope:
|
11 |
-
website: # Initialize websites
|
12 |
-
- website_id: 2
|
13 |
-
code: usa_website
|
14 |
-
name: USA Website
|
15 |
-
default_group_id: 2
|
16 |
-
- website_id: 3
|
17 |
-
code: canada_website
|
18 |
-
name: Canada Website
|
19 |
-
default_group_id: 3
|
20 |
-
- website_id: 4
|
21 |
-
code: german_website
|
22 |
-
name: German Website
|
23 |
-
default_group_id: 4
|
24 |
-
group: # Initializes store groups
|
25 |
-
- group_id: 2
|
26 |
-
website_id: 2
|
27 |
-
name: USA Store Group
|
28 |
-
default_store_id: 2
|
29 |
-
root_category_id: 2 # Default Category
|
30 |
-
- group_id: 3
|
31 |
-
website_id: 3
|
32 |
-
name: Canada Store Group
|
33 |
-
default_store_id: 3
|
34 |
-
root_category_id: 2 # Default Category
|
35 |
-
- group_id: 4
|
36 |
-
website_id: 4
|
37 |
-
name: German Store Group
|
38 |
-
default_store_id: 4
|
39 |
-
root_category_id: 2 # Default Category
|
40 |
-
store: # Initializes store views
|
41 |
-
- store_id: 2
|
42 |
-
website_id: 2
|
43 |
-
group_id: 2
|
44 |
-
code: usa
|
45 |
-
name: USA Store
|
46 |
-
is_active: 1
|
47 |
-
- store_id: 3
|
48 |
-
website_id: 3
|
49 |
-
group_id: 3
|
50 |
-
code: canada
|
51 |
-
name: Canada Store
|
52 |
-
is_active: 1
|
53 |
-
- store_id: 4
|
54 |
-
website_id: 4
|
55 |
-
group_id: 4
|
56 |
-
code: germany
|
57 |
-
name: Germany Store
|
58 |
-
is_active: 1
|
59 |
-
config:
|
60 |
-
default/catalog/price/scope: 1 # Set price scope to website
|
61 |
-
default/dev/log/active: 1
|
62 |
-
default/dev/log/file: tests-system.log
|
63 |
-
default/dev/log/exception_file: tests-exception.log
|
64 |
-
eav:
|
65 |
-
catalog_product:
|
66 |
-
- entity_id: 1
|
67 |
-
type_id: simple
|
68 |
-
sku: book
|
69 |
-
name: Book
|
70 |
-
short_description: Book
|
71 |
-
description: Book
|
72 |
-
url_key: book
|
73 |
-
stock:
|
74 |
-
qty: 100.00
|
75 |
-
is_in_stock: 1
|
76 |
-
website_ids:
|
77 |
-
- usa_website
|
78 |
-
- canada_website
|
79 |
-
- german_website
|
80 |
-
category_ids:
|
81 |
-
- 2 # Default Category
|
82 |
-
price: 12.99
|
83 |
-
tax_class_id: 2 # Taxable Goods
|
84 |
-
status: 1 # Enabled
|
85 |
-
visibility: 4 # Visible in Catalog & Search
|
86 |
-
/website # Set different prices per website
|
87 |
-
usa_website:
|
88 |
-
special_price: 9.99
|
89 |
-
german_website:
|
90 |
-
price: 9.99
|
91 |
-
special_price: 5.99
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Fooman/EmailAttachments/Test/Readme.md
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
Tests currently use the Ecomdev fork at
|
2 |
-
https://github.com/fooman/EcomDev_PHPUnit/commits/master
|
|
|
|
app/code/community/Fooman/EmailAttachments/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fooman_EmailAttachments>
|
5 |
-
<version>0.9.
|
6 |
<depends>
|
7 |
</depends>
|
8 |
</Fooman_EmailAttachments>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fooman_EmailAttachments>
|
5 |
+
<version>0.9.3</version>
|
6 |
<depends>
|
7 |
</depends>
|
8 |
</Fooman_EmailAttachments>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fooman_EmailAttachments</name>
|
4 |
-
<version>0.9.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -18,8 +18,8 @@
|
|
18 |
<notes>0.9.2 Release</notes>
|
19 |
<authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>kristof@fooman.co.nz</email></author><author><name>Kristof Ringleff</name><user>auto-converted</user><email>kristof@fooman.co.nz</email></author></authors>
|
20 |
<date>2013-03-23</date>
|
21 |
-
<time>
|
22 |
-
<contents><target name="magecommunity"><dir name="Fooman"><dir name="EmailAttachments"><dir name="Block"><file name="View.php" hash="d1236b00671ee81013b2aecc86bae50c"/></dir><dir name="Helper"><file name="Data.php" hash="4e053c92565ce6440592ae25ecee1739"/></dir><dir name="Model"><dir name="Core"><dir name="Email"><dir name="Template"><file name="Mailer.php" hash="72579a3a9d08bdf585afc161e9516d87"/></dir></dir></dir><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="3cc326a77bcb27e2a165b7eea07670d5"/></dir></dir><dir name="System"><file name="File.php" hash="70b05b8e860088b0d2769d7a79c38e0c"/></dir><file name="Observer.php" hash="f4a8f2c5ecc8a81b7eafa4c132f8477f"/><file name="Updates.php" hash="7bee51da61f188d75dd7707bc6301e9d"/></dir><dir name="
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fooman_EmailAttachments</name>
|
4 |
+
<version>0.9.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
18 |
<notes>0.9.2 Release</notes>
|
19 |
<authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>kristof@fooman.co.nz</email></author><author><name>Kristof Ringleff</name><user>auto-converted</user><email>kristof@fooman.co.nz</email></author></authors>
|
20 |
<date>2013-03-23</date>
|
21 |
+
<time>11:33:26</time>
|
22 |
+
<contents><target name="magecommunity"><dir name="Fooman"><dir name="EmailAttachments"><dir name="Block"><file name="View.php" hash="d1236b00671ee81013b2aecc86bae50c"/></dir><dir name="Helper"><file name="Data.php" hash="4e053c92565ce6440592ae25ecee1739"/></dir><dir name="Model"><dir name="Core"><dir name="Email"><dir name="Template"><file name="Mailer.php" hash="72579a3a9d08bdf585afc161e9516d87"/></dir></dir></dir><dir name="Order"><dir name="Pdf"><file name="Order.php" hash="3cc326a77bcb27e2a165b7eea07670d5"/></dir></dir><dir name="System"><file name="File.php" hash="70b05b8e860088b0d2769d7a79c38e0c"/></dir><file name="Observer.php" hash="f4a8f2c5ecc8a81b7eafa4c132f8477f"/><file name="Updates.php" hash="7bee51da61f188d75dd7707bc6301e9d"/></dir><dir name="controllers"><dir name="Admin"><file name="OrderController.php" hash="ba67951a6afa85f35b49ca9eb375a2bf"/></dir><dir name="Customer"><file name="OrderController.php" hash="bc8d1ae57801fcdf5bc1d5abbac0b879"/></dir></dir><dir name="etc"><file name="config.xml" hash="b4a82a46efeafb7a6f8c0bdd3e431791"/><file name="system.xml" hash="4dcdf6bb032e10a9ca4906c8b21d9278"/></dir><file name="LICENSE.txt" hash="59563e7be45096d0833dade102989042"/></dir><dir name="Common"><dir name="Helper"><file name="Data.php" hash="29532ee61210c9079764088d178dc455"/><file name="Debug.php" hash="be88a2995ff55a9ace66db3fbf6982b8"/></dir><dir name="etc"><file name="config.xml" hash="b309ba3028930bdb938a08251788fb1a"/><file name="system.xml" hash="342b9c19cbf4ba7ce8f7ce12030b12f4"/></dir><file name="LICENSE.txt" hash="59563e7be45096d0833dade102989042"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fooman_EmailAttachments.xml" hash="041c20e1806af133c1c1505af9902001"/><file name="Fooman_Common.xml" hash="2555b2dd668865790df287b5cca61e35"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Fooman_EmailAttachments.csv" hash="572cca36b6b4a051b7722cb6488a636a"/></dir><dir name="de_DE"><file name="Fooman_EmailAttachments.csv" hash="7113fa7ee43f7daeb5511123d014ed57"/></dir><dir name="nl_NL"><file name="Fooman_EmailAttachments.csv" hash="7be7ad5c22ebbdb634f31f3e8d19fbd8"/></dir><dir name="fr_FR"><file name="Fooman_EmailAttachments.csv" hash="4e8c2ae3faf280874e5372d5fccb065d"/></dir><dir name="es_ES"><file name="Fooman_EmailAttachments.csv" hash="d898982c6a29dd52b84a9142dc5cf64f"/></dir><dir name="ro_RO"><file name="Fooman_EmailAttachments.csv" hash="e680cb11b15fc2f63e3123624daed1e1"/></dir><dir name="th_TH"><file name="Fooman_EmailAttachments.csv" hash="572cca36b6b4a051b7722cb6488a636a"/></dir><dir name="da_DK"><file name="Fooman_EmailAttachments.csv" hash="129927e87ec7d8b3d4466a58e5215b09"/></dir><dir name="ar_SA"><file name="Fooman_EmailAttachments.csv" hash="6ed6e4fda26b7dd3bd206538df12e8ab"/></dir><dir name="ca_ES"><file name="Fooman_EmailAttachments.csv" hash="a81b65ca792f534072511a18a91423c9"/></dir><dir name="cs_CZ"><file name="Fooman_EmailAttachments.csv" hash="86f4cac9569ca2708b44a5240496d00a"/></dir><dir name="et_EE"><file name="Fooman_EmailAttachments.csv" hash="206f6d731c2e2ef3664869a6be68b95f"/></dir><dir name="he_IL"><file name="Fooman_EmailAttachments.csv" hash="81b7326525ee4839e41be971709f9e96"/></dir><dir name="it_IT"><file name="Fooman_EmailAttachments.csv" hash="572cca36b6b4a051b7722cb6488a636a"/></dir><dir name="ja_JP"><file name="Fooman_EmailAttachments.csv" hash="5618c215a5cbb924d2951c879d42573f"/></dir><dir name="lt_LT"><file name="Fooman_EmailAttachments.csv" hash="18fff03b09d88b8b938bed19639b4f8f"/></dir><dir name="lv_LV"><file name="Fooman_EmailAttachments.csv" hash="15714286f2b7e009f7674a9f747a1cd4"/></dir><dir name="no_NO"><file name="Fooman_EmailAttachments.csv" hash="9d201c51cfc24326a0a677b2f7cd838e"/></dir><dir name="pt_BR"><file name="Fooman_EmailAttachments.csv" hash="463ca55f2f52b4422ff2f275f8649b85"/></dir><dir name="sl_SI"><file name="Fooman_EmailAttachments.csv" hash="288a189ee828dc6b91b72f20bc771452"/></dir><dir name="sv_SE"><file name="Fooman_EmailAttachments.csv" hash="96bb09816c468417dd6f280108d200d3"/></dir><dir name="fi_FI"><file name="Fooman_EmailAttachments.csv" hash="53f5fa6e60fb26effdd36422d8bf24f9"/></dir><dir name="gr_GR"><file name="Fooman_EmailAttachments.csv" hash="34187b2e6fded1ba9d065f9a9cb73ae8"/></dir><dir name="hr_HR"><file name="Fooman_EmailAttachments.csv" hash="6564938bfeefdc2ca37f183943bc5873"/></dir><dir name="ko_KR"><file name="Fooman_EmailAttachments.csv" hash="951a785b40eb519b6f460fccc7718b24"/></dir><dir name="nb_NO"><file name="Fooman_EmailAttachments.csv" hash="9d201c51cfc24326a0a677b2f7cd838e"/></dir><dir name="pl_PL"><file name="Fooman_EmailAttachments.csv" hash="db51bd721228cf6f3b8f25702282cced"/></dir><dir name="ru_RU"><file name="Fooman_EmailAttachments.csv" hash="5c111bca22d66855aa3f999a74b1fdba"/></dir><dir name="zh_CN"><file name="Fooman_EmailAttachments.csv" hash="f35148d8703229c2945565b3d8559455"/></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies/>
|
25 |
</package>
|