Back to Top

Testing Opencart Admin End Files By PHPUnit

Updated 17 June 2016

Today we will learn about how to test admin end controller and model files by PhpUnit Framework. As we have almost known how to install composer and phpunit on Opencart form our previous blog http://webkul.com/blog/integrate-phpunit-opencart/ and also have idea about to test catalog end files so today I will share the process for admin end files. For testing admin end files first we have to add “AdminTest” on our test class.

Ex – ModelSaleCustomerAdminTest

After that we follow the normal process of phpUnit . Here I have tested a model function i.e getCustomer of sale/customer

Screenshot_3

 

Searching for an experienced
Opencart Company ?
Find out More

Screenshot_2

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home