Skip to content

Load products and reviews from an external json file and display them.

Notifications You must be signed in to change notification settings

hounaida/Hounaida-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

The purpose of the app is to load products and its reviews from an external json resource and display a table product. Both Unit and Functional testing are implemented in this app.

Setup the project

$ cd /var/www/html
$ git clone [email protected]:hounaida/Hounaida-test.git hounaida-app
$ cd hounaida-app
$ composer install

Load fixtures

In order to load the sample data, run the below commands:

$ cd /var/www/html/hounaida-app
$ php bin/console doctrine:fixtures:load

Enjoy! http://localhost/hounaida-app/web/app_dev.php/products

Run Unit & functional testing

Unit testing

$ php ./vendor/bin/simple-phpunit tests/Unit

Functional testing

$ php ./vendor/bin/simple-phpunit tests/Fonctional