コード例 #1
0
 public function test_getSaleOrderCustomerId()
 {
     /** === Test Data === */
     $ORDER_ID = 1024;
     $CUST_ID = 4321;
     $DATA = [Cfg::E_SALE_ORDER_A_CUSTOMER_ID => $CUST_ID];
     /** === Setup Mocks === */
     // $data = $this->_repoGeneric->getEntityByPk(...)
     $this->mRepoGeneric->shouldReceive('getEntityByPk')->once()->andReturn($DATA);
     /** === Call and asserts  === */
     $res = $this->obj->getSaleOrderCustomerId($ORDER_ID);
     $this->assertEquals($CUST_ID, $res);
 }
コード例 #2
0
 public function test_getDownlineCustomerById()
 {
     $res = $this->obj->getDownlineCustomerById(99);
     $this->assertNotNull($res);
 }