コード例 #1
0
 public function test_getDownlineCustomerById()
 {
     /** === Test Data === */
     $ID = 1024;
     $DATA = 'data';
     /** === Setup Mocks === */
     // $result = $this->_repoDownlineCustomer->getById($id);
     $this->mRepoDownlineCustomer->shouldReceive('getById')->once()->with($ID)->andReturn($DATA);
     /** === Call and asserts  === */
     $res = $this->obj->getDownlineCustomerById($ID);
     $this->assertEquals($DATA, $res);
 }
コード例 #2
0
 public function test_getDownlineCustomerById()
 {
     $res = $this->obj->getDownlineCustomerById(99);
     $this->assertNotNull($res);
 }