Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 948 Bytes

TESTING.md

File metadata and controls

37 lines (32 loc) · 948 Bytes

Setup the test framework

Install composer globally

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

You can read the official documentation here

Install Behat

To install behat and other dependencies run the following command on the project root:

$ composer install

Configure Behat

run the following command:

$ cp default.behat.yml behat.yml

Edit behat.yml file and customize your base_url

Initial setup

Create a database, but keep it empty

$ mysqladmin -uroot -p create phplisttestdb
$ mysqladmin -uroot -p -e "grant all on phplisttestdb.* to phplist@localhost identified by 'testpassword'"

edit your phplist config file to use these details

Run The tests

Execute the following command:

$ vendor/bin/behat

TODO

Add writing tests documentation.