Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 61c6a25

Browse files
author
David Albrecht
committed
added test for getInventory()-method to ServiceTest
1 parent 18b7084 commit 61c6a25

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/Discogs/Test/Integration/ServiceTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ public function testLabel()
8787
$this->assertEquals($response->getId(), 1);
8888
}
8989

90+
public function testInventory(){
91+
$response = $this->service->getInventory('buyreggae');
92+
$this->assertInstanceOf('Discogs\Model\Pagination', $response->getPagination());
93+
$this->assertTrue(is_array($response->getListings()));
94+
$this->assertGreaterThan(0, $response->count());
95+
$this->assertInstanceOf('ArrayIterator', $response->getIterator());
96+
}
97+
9098
public function testNext()
9199
{
92100
$response = $this->service->search(array('q' => 'vibrasphere'));

0 commit comments

Comments
 (0)