Also see Testing manual.
// Codeception, PHPunit. Structure of tests
Before contributing make sure you have last update of your repositories.
(use
composer update
on whole project orgit pull
in specific module)
To contribute follow this steps:
-
Fork repository of module you were working on
to find repository use
git remote -v
in 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 add
when 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
push
to the same[remote name] [branch name]
.
Make sure that changes you push, for example
Added
,Removed
etc. 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
localhost
in Host4.3
80
in Port4.4
Xdebug
in Debugger4.5 Choose
Use path mappings
option and type/app
in 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;