[Drupal] How to test Ubercart taxes module

| | 2 min read

Suppose your Drupal project handles products which can be purchased through online and you are using Ubercart 'taxes' module to handle tax rates which are applicable to your product. Also Admin has the permission to add tax rates and conditions. And a registered user can buy the product. Here I am going to explain some of the test cases which you have to execute while testing this functionality.

The cases you have to test are:

  1. Ensure that uc taxes module is enabled in your site.
    If tax module is enable in your Druapl website, it can be find at
    Home » Administration » Store » Configuration » Taxes
  2. Ensure that Admin is ablt to add new tax rate
    Admin can add tax rate at /Admin/store/settings/taxes/add.
  3. Ensure that Admin is able to change tax rate.
  4. Ensure that Admin is able to edit/delete tax rate.
  5. Ensure that Admin is able to add/edit/delete condition.
  6. Ensure that the tax rate is applied to the prodcut.
  7. Ensure that tax rates are changing as per the condition.
  8. Ensure that the drupal site gives accurate prize value for both real numbers and floating point numbers.
  9. Ensure that the changed values are reflected in the drupal website.
  10. Ensure that users other than Admin doesn't have the permission to add/edit tax rates.
  11. Ensure that error message will be displayed if the conditions in tax rated does not satisfy.
  12. Ensure that error message will be displayed if the customer proceeds the order without calculating the tax rates.

This article specify some of the cases which should be considered while using uc taxes module in projects in Drupal 7. Procedure may vary depends on the Drupal versions and requirement.