示例#1
0
 /**
  * Tests the getters and setters of the model
  * @test
  */
 public function setGetTest()
 {
     $sample = array('amount' => '4200', 'description' => 'Sample Description');
     $this->_refund->setAmount($sample['amount'])->setDescription($sample['description']);
     $this->assertEquals($this->_refund->getAmount(), $sample['amount']);
     $this->assertEquals($this->_refund->getDescription(), $sample['description']);
     return $this->_refund;
 }
示例#2
0
 /**
  * @test
  * @codeCoverageIgnore
  * @depends createRefund
  * @depends getOneRefund
  * @depends updateRefund
  * @expectedException \Paymill\Services\PaymillException
  * @expectedExceptionMessage Method not Found
  */
 public function deleteRefund($model)
 {
     $this->_model->setId($model->getId());
     $result = $this->_service->delete($this->_model);
     $this->assertInstanceOf('Paymill\\Models\\Response\\Error', $result, var_export($result, true));
     $this->assertEquals('Method not Found', $result->getErrorMessage());
 }