Discogs\Test\ClientTest::testCreateListing PHP Method

testCreateListing() public method

public testCreateListing ( )
    public function testCreateListing()
    {
        $client = $this->createClient('create_listing', $history = new History());
        $response = $client->createListing(['release_id' => '1', 'condition' => 'Mint (M)', 'status' => 'For Sale', 'price' => 5.9]);
        $this->assertSame('POST', $history->getLastRequest()->getMethod());
        $this->assertSame('https://api.discogs.com/marketplace/listings', $history->getLastRequest()->getUrl());
    }