Hello All
I need some help writing a test case to test the following code that checks if the record has been inserted successfully.
$DB->Insert(db query here...);
$lastInsertID = $DB->InsertID();
if (!$lastInsertID) {
throw new Exception('Unable to insert new record');
}
Any help will be appreciated.
Thanks