Example #1
0
 /**
  * Test of getEndpoint method for the  Inventory endpoint if Sandbox mode on
  *
  * @return void
  **/
 public function testGetUrlFromEndpointInventoryIfSandboxModeOn()
 {
     $this->configuration->setup(['sandboxMode' => true]);
     $endpoint = $this->configuration->getEndpoint(Configuration::ENDPOINT_INVENTORY);
     $expected = 'http://sandbox-api.buscape.com.br/product/t1/inventory';
     $this->assertEquals($expected, $endpoint->getUrl($this->configuration));
 }