/** * @expectedException \StoreIntegrator\Exceptions\EbayErrorException * @expectedExceptionMessage Very Big Error * @expectedExceptionCode 1234 */ public function testGetttingProductsError() { $this->createErrorResponseForOperation('GetSellerList'); $this->productWrapper->getAll(new DateTime('-1 week')); }
/** * Get products for the current user. * Has pagination * * @param DateTime $startDate * @param int $page * @param int $perPage * @return array */ public function getProducts(DateTime $startDate, $page = 1, $perPage = 100) { return $this->productWrapper->getAll($startDate, $page, $perPage); }