public function testaddGroupToRecord() { //unset and reconnect Db to resolve mysqli fetch exeception global $db; unset($db->database); $db->checkConnection(); $securityGroup = new SecurityGroup(); //execute the method and test if it works and does not throws an exception. try { $securityGroup->addGroupToRecord('Accounts', 1, 1); $this->assertTrue(true); } catch (Exception $e) { $this->fail(); } }