You are here

function UserpointsNodeVisitsTestCase::deletePoints in User points Nodes and Comments 7

1 call to UserpointsNodeVisitsTestCase::deletePoints()
UserpointsNodeVisitsTestCase::testVisitingContent in userpoints_nc_visits/userpoints_nc_visits.test
Prepare test environment, run different test methods.

File

userpoints_nc_visits/userpoints_nc_visits.test, line 71

Class

UserpointsNodeVisitsTestCase
Generic tests for Userpoints Visits module.

Code

function deletePoints() {
  db_truncate('userpoints')
    ->execute();
  db_truncate('userpoints_txn')
    ->execute();
  db_truncate('userpoints_nc_visits')
    ->execute();
}