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); }
public function test_getDownlineCustomerById() { $res = $this->obj->getDownlineCustomerById(99); $this->assertNotNull($res); }