3 require_once 'Pman.php';
5 class Pman_Xtuple_TestAuth extends Pman
7 static $cli_desc = "Test auth code...";
11 if (!HTML_FlexyFramework::get()->cli) {
19 DB_DataObject::DebugLevel(1);
20 $oc = $this->loadOwnerCompany();
22 $p = DB_DataObject::factory('Person');
23 if ($p->get('email', 'test@roojs.com')) {
28 $p = DB_DataObject::factory('Person');
31 'email' => 'test@roojs.com',
33 'company_id' => $oc->id,
36 $p->setPassword("test123");
38 $p->onInsert(array(),$this);
41 //onUpdate($old, $request,$roo)