public function testFetchServiceStatus() { resetLog(); $this->object->setMock(true, 'fetchServiceStatus.xml'); $this->assertFalse($this->object->fetchServiceStatus()); //no service set yet $this->object->setService('Inbound'); $this->assertNull($this->object->fetchServiceStatus()); //now it is good $o = $this->object->getOptions(); $this->assertEquals('GetServiceStatus', $o['Action']); $check = parseLog(); $this->assertEquals('Single Mock File set: fetchServiceStatus.xml', $check[1]); $this->assertEquals('Service must be set in order to retrieve status', $check[2]); $this->assertEquals('Fetched Mock File: mock/fetchServiceStatus.xml', $check[3]); return $this->object; }
public function testGetOptions() { $o = $this->object->getOptions(); $this->assertInternalType('array', $o); $this->assertArrayHasKey('SellerId', $o); $this->assertArrayHasKey('AWSAccessKeyId', $o); $this->assertArrayHasKey('SignatureVersion', $o); $this->assertArrayHasKey('SignatureMethod', $o); $this->assertArrayHasKey('Version', $o); }