public function testLogActionMainTopup()
 {
     ViciActionLogger::logAction("MAIN_TOPUP", "Top upping {$subAccount->main_user}", $this->topupvalue);
     $criteria = new CDbCriteria();
     $criteria->compare("action_type", "SUB_ACCOUNT_TOPUP");
     $foundCount = ViciActionLogger::model()->count($criteria);
     $this->assertEquals(1, $foundCount, 'there should be one record inserted');
 }