Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5556

Testing Opencart Admin End Files By PHPUnit

$
0
0

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

 

Screenshot_2

 


Viewing all articles
Browse latest Browse all 5556

Latest Images

Trending Articles



Latest Images