public function testFetchInventoryListToken1() { resetLog(); $this->object->setMock(true, 'fetchInventoryListToken.xml'); //no token $this->object->setResponseGroup('Detailed'); //without using token $this->assertNull($this->object->fetchInventoryList()); $check = parseLog(); $this->assertEquals('Single Mock File set: fetchInventoryListToken.xml', $check[1]); $this->assertEquals('Fetched Mock File: mock/fetchInventoryListToken.xml', $check[2]); $this->assertTrue($this->object->hasToken()); $o = $this->object->getOptions(); $this->assertEquals('ListInventorySupply', $o['Action']); $r = $this->object->getSupply(null); $this->assertArrayHasKey(0, $r); $this->assertEquals('SampleSKU1', $r[0]['SellerSKU']); $this->assertArrayNotHasKey(1, $r); }