ruạṛ
<?php // // WARNING: Do not edit by hand, this file was generated by Crank: // https://github.com/gocardless/crank // namespace GoCardlessPro\Integration; class MandatePdfsIntegrationTest extends IntegrationTestBase { public function testResourceModelExists() { $obj = new \GoCardlessPro\Resources\MandatePdf(array()); $this->assertNotNull($obj); } public function testMandatePdfsCreate() { $fixture = $this->loadJsonFixture('mandate_pdfs')->create; $this->stub_request($fixture); $service = $this->client->mandatePdfs(); $response = call_user_func_array(array($service, 'create'), (array)$fixture->url_params); $body = $fixture->body->mandate_pdfs; $this->assertInstanceOf('\GoCardlessPro\Resources\MandatePdf', $response); $this->assertEquals($body->expires_at, $response->expires_at); $this->assertEquals($body->url, $response->url); $expectedPathRegex = $this->extract_resource_fixture_path_regex($fixture); $dispatchedRequest = $this->history[0]['request']; $this->assertRegExp($expectedPathRegex, $dispatchedRequest->getUri()->getPath()); } }
cải xoăn