Skip to content

Commit

Permalink
update testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
benzhangzip committed Sep 13, 2018
1 parent 5b08378 commit 2d45ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ public function testApiHeaders()
$config->setPlatform("Magento/1.0.0")
->setDefaultHeaders("sandbox");

$this->assertEquals($config->getUserAgent(),"Magento/1.0.0 merchantapi-php/1.0.6");
$this->assertEquals($config->getUserAgent(),"Magento/1.0.0 merchantapi-php/1.0.7");
$this->assertEquals($config->getDefaultHeaders(),array("Zip-Version"=>"2017-03-01"));

}

public function testPackageVersion()
{
$config = Configuration::getDefaultConfiguration();
$this->assertEquals($config->getPackageVersion(),"1.0.6");
$this->assertEquals($config->getPackageVersion(),"1.0.7");
}

}

0 comments on commit 2d45ea0

Please sign in to comment.