This repository was archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHACKING
More file actions
60 lines (44 loc) · 1.81 KB
/
HACKING
File metadata and controls
60 lines (44 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Setting up
----------
in your magento tree:
modman init
modman clone magento-getfinancing gitolite@git.credex.us:dev/magento-getfinancing
modman deploy magento-getfinancing
Unit tests
----------
- add module EcomDev_PhpUnit to your magento project
This deploys a symlink for UnitTests.php in your magento root
- from your magento root, run
phpunit --group EmPayTech_GetFinancing UnitTests.php
Unit tests do not work with Magento 1.4 and below
Testing
-------
- the postback handler (transactAction) can be tested with curl; example:
curl -X POST -d 'function=transact&crl_id=1202ddfe-3b4e-11e3-9e24-f23c91695a70&cust_id_ext=100000003&inv_id=f0d622abf4dacb4a470cbfaba3aedd40&inv_status=AuthOnly&version=0.3&method=purchase' -v http://magento1411.localhost/getfinancing/standard/transact
- the popup handling (closing, redirect, ...) can be tested by browsing to:
http://magento1411.localhost/index.php/getfinancing/standard/redirect/
The redirect handler will work with a default session if no session is
active so behaviour can be tested.
Selenium/SST tests
------------------
- run tests:
cd sst
source venv/bin/activate
cd tests
sst-run -s --debug magento.createuser
sst-run -s --debug magento.deleteuser
- environment variables for tests:
- MAGENTO_VERSION: the version used; defaults to 19 for 1.9.0.0
- MAGENTO_DOMAIN_SUFFIX: the part after the hostname, including leading dot;
defaults to .localhost
- MAGENTO_PROTOCOL: http (default) or https
- MAGENTO_HOSTNAME: if you want to override it compared to the one guessed
from VERSION
- MAGENTO_ADMIN_PASSWORD
New release
-----------
- update version number:\
`vim Makefile`\
`vim app/code/local/EmPayTech/GetFinancing/etc/config.xml`
- Create the release:\
Use `make` command to create the new release