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
Be the first to comment.