### Unit tests Unit tests can be performed by running `phpunit` in the root directory or inside `/tests/unit`. ### Functional tests Functional tests can be performed by running `phpunit` in the `/tests/functional` directory. Ensure the following configuration is met: - Active theme is `demo` - Language preference is `en` #### Selenium set up 1. Download latest Java SE from http://java.sun.com/ and install 1. Download a distribution archive of [Selenium Server](http://seleniumhq.org/download/). 1. Unzip the distribution archive and copy selenium-server-standalone-2.42.2.jar (check the version suffix) to /usr/local/bin, for instance. 1. Start the Selenium Server server by running `java -jar /usr/local/bin/selenium-server-standalone-2.42.2.jar`. #### Selenium configuration Create a new file `selenium.php` in the root directory, add the following content: