Discogs\Test\ClientTest::testGetLabel PHP Method

testGetLabel() public method

public testGetLabel ( )
    public function testGetLabel()
    {
        $history = new History();
        $client = $this->createClient('get_label', $history);
        $response = $client->getLabel(['id' => 1]);
        $this->assertArrayHasKey('releases_url', $response);
        $this->assertSame('https://api.discogs.com/labels/1/releases', $response['releases_url']);
        $this->assertArrayHasKey('sublabels', $response);
        $this->assertCount(6, $response['sublabels']);
        $this->assertSame('https://api.discogs.com/labels/1', $history->getLastRequest()->getUrl());
        $this->assertSame('GET', $history->getLastRequest()->getMethod());
    }