Open source for the community - looking for project maintainers. Please contact @bobbravo2.
eNom PRO was a lot of work over many years - if you find it valuable, please open a PR to fix issues, or consider donating:
- Install WHMCS
- Make sure to note the MySQL credentials for configuring PHPUnit.xml below
- Install Composer Globally
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
- Run
composer install
from the project root - Run phing to build the working copy
vendor/bin/phing
- add a file watcher to automatically build after changes to the src/ directory tree
- Symlink build/encoded_prep/modules/addons/enom_pro to the whmcs/modules/addons/enom_pro directory tree
- Activate the addon in WHMCS (if you don't see it, the symlink is wrong)
- Create a local API user
- Username:
api
- Password:
12345
- White-list your localhost IP address (127.0.0.1, ::1, etc.)
- WHMCS Dev -> Admin
- Setup -> General Settings
- Security Tab -> API IP Access Restriction -> Add IP
- Press save ;-)
- Username:
- Configure phpunit
- Copy phpunit.dist.xml -> phpunit.xml
- Specific constants that should be customized:
WHMCS_API_URL
- Local WHMCS install API URL endpoint (which is located inside /whmcs/includes/api.php)MYSQL_HOST
,MYSQL_PASS
,MYSQL_USER
,MYSQL_DB
- Use the same settings as your dev install of WHMCS, reference the /whmcs/configuration.php if necessary
- This way you can preview states between the interface and failing tests
ENOM_PRO_TEMP
- Absolute path to a tmp directory for writing cache filesWHMCS_API_UN
/WHMCS_API_PW
- Should be the same API credentials from above
- Run the tests from the project root:
vendor/bin/phpunit -c phpunit.dist.xml
- To exclude groups, use
vendor/bin/phpunit -c phpunit.dist.xml --exclude-group slow
- To view groups use:
vendor/bin/phpunit --list-groups
- nogroup
- domains
- namespinner
- pricing
- remote
- settings
- slow
- srv
- ssl
- stats
- tests
- tlds
- transfers
- views
- whmcs
- whois