public function testSearch()
{
$history = new History();
$client = $this->createClient('search', $history);
$response = $client->search(['q' => 'prodigy', 'type' => 'release', 'title' => 'the fat of the land']);
$this->assertCount(50, $response['results']);
$this->assertArrayHasKey('pagination', $response);
$this->assertArrayHasKey('per_page', $response['pagination']);
$this->assertSame('https://api.discogs.com/database/search?q=prodigy&type=release&title=the%20fat%20of%20the%20land', $history->getLastRequest()->getUrl());
$this->assertSame('GET', $history->getLastRequest()->getMethod());
}