Also see Testing manual.
// Codeception, PHPunit. Structure of tests
Before contributing make sure you have last update of your repositories.
(use
composer updateon whole project orgit pullin specific module)
To contribute follow this steps:
-
Fork repository of module you were working on
to find repository use
git remote -vin your module dir and follow link orsearch for this module at hiqdev
-
Type
git remote add [remote name] [url]inside your module dir[remote name]is name of your remote branch (for exampleforked)[url]is your forked url -
Type
git checkout -b [branch name][branch name]is name of your new brach (for examplerequest) -
After
git addwhen you makegit commit -m [message]follow this simple rules:- Your
[message]must start with one word likeAdded,Changed,Fixed,Removed - Next will follow the description of what exactly was added, changed or removed.
- Your
-
Next you
git push [remote name] [branch name]for example
git push forked request -
After that you need to create a pull request.
You can do it at github website:
-
Open repository (for example hipnel)
-
Click New pull request
(or click green Compare & pull request and skip iii step)
-
Click compare across forks and on the right choose your forked repository -> brach name
-
Click green Create pull request
-
-
After your pull request was reviewed and you have to make some changes, all you need to do is just make that changes and
pushto the same[remote name] [branch name].
Make sure that changes you push, for example
Added,Removedetc. are all in different pull requests
// Trunk based development
// What to read about?
To make xDebug work in PHPStorm you need:
-
In PHPStorm, Add Configuration, choose type PHP Web Page
-
In server settings create server and fill data:
4.1 Set Name that matches your project domain name set in .env (e.g.
local.hipanel.hiqdev.com)4.2
localhostin Host4.3
80in Port4.4
Xdebugin Debugger4.5 Choose
Use path mappingsoption and type/appin Absolute path on the server where File/Directory is root path of your project -
Turn on Start Listening for PHP Debug Connections and don't forget to activate your debug browser extension
// What to do in PHPStorm, browser, etc?
// How to check that xDebug is enabled on PHP side?
// - debug session does not get started;
// - debug can not locate files;