Skip to content

Commit c65e509

Browse files
committed
Updated setup tests to use test config
1 parent 3e7aa82 commit c65e509

10 files changed

+11
-11
lines changed

test-cases/includes/classes/AmazonFeedResultTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonFeedResult('testStore', 77);
31+
$obj = new AmazonFeedResult('testStore', 77, true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('FeedSubmissionId',$o);

test-cases/includes/classes/AmazonFulfillmentOrderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonFulfillmentOrder('testStore', '77');
31+
$obj = new AmazonFulfillmentOrder('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('SellerFulfillmentOrderId',$o);

test-cases/includes/classes/AmazonOrderItemListTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonOrderItemList('testStore', '77');
31+
$obj = new AmazonOrderItemList('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('AmazonOrderId',$o);

test-cases/includes/classes/AmazonOrderSetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonOrderSet('testStore', '77');
31+
$obj = new AmazonOrderSet('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('AmazonOrderId.Id.1',$o);

test-cases/includes/classes/AmazonOrderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonOrder('testStore', '77');
31+
$obj = new AmazonOrder('testStore', '77', null, true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('AmazonOrderId.Id.1',$o);
3535
$this->assertEquals('77', $o['AmazonOrderId.Id.1']);
3636

3737
$data = simplexml_load_file(__DIR__.'/../../mock/fetchOrder.xml');
38-
$obj2 = new AmazonOrder('testStore', null, $data->GetOrderResult->Orders->Order);
38+
$obj2 = new AmazonOrder('testStore', null, $data->GetOrderResult->Orders->Order, true, null, __DIR__.'/../../test-config.php');
3939

4040
$get = $obj2->getAmazonOrderId();
4141
$this->assertEquals('058-1233752-8214740', $get);

test-cases/includes/classes/AmazonPackageTrackerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonPackageTracker('testStore', '77');
31+
$obj = new AmazonPackageTracker('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('PackageNumber',$o);

test-cases/includes/classes/AmazonReportAcknowledgerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonReportAcknowledger('testStore', '77');
31+
$obj = new AmazonReportAcknowledger('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('ReportIdList.Id.1',$o);

test-cases/includes/classes/AmazonReportTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonReport('testStore', '77');
31+
$obj = new AmazonReport('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('ReportId',$o);

test-cases/includes/classes/AmazonServiceStatusTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonServiceStatus('testStore', 'Inbound');
31+
$obj = new AmazonServiceStatus('testStore', 'Inbound', true, null, __DIR__.'/../../test-config.php');
3232
$this->assertTrue($obj->isReady());
3333
}
3434

test-cases/includes/classes/AmazonShipmentItemListTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function tearDown() {
2828
}
2929

3030
public function testSetUp(){
31-
$obj = new AmazonShipmentItemList('testStore', '77');
31+
$obj = new AmazonShipmentItemList('testStore', '77', true, null, __DIR__.'/../../test-config.php');
3232

3333
$o = $obj->getOptions();
3434
$this->assertArrayHasKey('ShipmentId',$o);

0 commit comments

Comments
 (0)