<?php
//
// WARNING: Do not edit by hand, this file was generated by Crank:
// https://github.com/gocardless/crank
//

namespace GoCardlessPro\Integration;

class LogosIntegrationTest extends IntegrationTestBase
{
    public function testResourceModelExists()
    {
        $obj = new \GoCardlessPro\Resources\Logo(array());
        $this->assertNotNull($obj);
    }
    
    public function testLogosCreateForCreditor()
    {
        $fixture = $this->loadJsonFixture('logos')->create_for_creditor;
        $this->stub_request($fixture);

        $service = $this->client->logos();
        $response = call_user_func_array(array($service, 'createForCreditor'), (array)$fixture->url_params);

        $body = $fixture->body->logos;
    
        $this->assertInstanceOf('\GoCardlessPro\Resources\Logo', $response);

        $this->assertEquals($body->id, $response->id);
    

        $expectedPathRegex = $this->extract_resource_fixture_path_regex($fixture);
        $dispatchedRequest = $this->history[0]['request'];
        $this->assertMatchesRegularExpression($expectedPathRegex, $dispatchedRequest->getUri()->getPath());
    }

    
}
