예제 #1
0
 /**
  * Tests loading the CSystem_Bcode Object
  */
 public function testLoad()
 {
     $this->obj->bind($this->post_data);
     $result = $this->obj->store();
     $this->assertTrue($result);
     $item = new CSystem_Bcode();
     $item->overrideDatabase($this->mockDB);
     $this->post_data['billingcode_id'] = $this->obj->billingcode_id;
     $this->mockDB->stageHash($this->post_data);
     $item->load($this->obj->billingcode_id);
     $this->assertEquals($this->obj->billingcode_id, $item->billingcode_id);
     $this->assertEquals($this->obj->billingcode_name, $item->billingcode_name);
     $this->assertEquals($this->obj->billingcode_desc, $item->billingcode_desc);
 }