Skip to content

Commit 921ca4a

Browse files
committed
- Update unit tests for EndShipper
- Record EndShipper cassettes now that endpoint is live
1 parent 807e289 commit 921ca4a

File tree

7 files changed

+458
-6
lines changed

7 files changed

+458
-6
lines changed

lib/EasyPost/EndShipper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace EasyPost;
44

55
/**
6-
* @package EasyPost\Beta
6+
* @package EasyPost
77
* @property string $id
88
* @property string $street1
99
* @property string $street2

lib/EasyPost/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function convertToEasyPostObject($response, $apiKey, $parent = nul
6464
'CarrierDetail' => '\EasyPost\CarrierDetail',
6565
'CustomsInfo' => '\EasyPost\CustomsInfo',
6666
'CustomsItem' => '\EasyPost\CustomsItem',
67-
'EndShipper' => '\EasyPost\Beta\EndShipper',
67+
'EndShipper' => '\EasyPost\EndShipper',
6868
'Event' => '\EasyPost\Event',
6969
'Fee' => '\EasyPost\Fee',
7070
'Insurance' => '\EasyPost\Insurance',
@@ -103,7 +103,7 @@ public static function convertToEasyPostObject($response, $apiKey, $parent = nul
103103
'ca' => '\EasyPost\CarrierAccount',
104104
'cstinfo' => '\EasyPost\CustomsInfo',
105105
'cstitem' => '\EasyPost\CustomsItem',
106-
'es' => '\EasyPost\Beta\EndShipper',
106+
'es' => '\EasyPost\EndShipper',
107107
'evt' => '\EasyPost\Event',
108108
'fee' => '\EasyPost\Fee',
109109
'hook' => '\EasyPost\Webhook',

test/EasyPost/EndShipperTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testCreate()
3636

3737
$endShipper = EndShipper::create(Fixture::caAddress1());
3838

39-
$this->assertInstanceOf('\EasyPost\Beta\EndShipper', $endShipper);
39+
$this->assertInstanceOf('\EasyPost\EndShipper', $endShipper);
4040
$this->assertStringMatchesFormat('es_%s', $endShipper->id);
4141
$this->assertEquals('388 TOWNSEND ST APT 20', $endShipper->street1);
4242
}
@@ -52,7 +52,7 @@ public function testRetrieve()
5252

5353
$retrievedEndShipper = EndShipper::retrieve($endShipper->id);
5454

55-
$this->assertInstanceOf('\EasyPost\Beta\EndShipper', $retrievedEndShipper);
55+
$this->assertInstanceOf('\EasyPost\EndShipper', $retrievedEndShipper);
5656
$this->assertEquals($endShipper->street1, $retrievedEndShipper->street1);
5757
}
5858

@@ -98,7 +98,7 @@ public function testUpdate()
9898
$endShipper->email = 'test@example.com';
9999
$endShipper->save();
100100

101-
$this->assertInstanceOf('\EasyPost\Beta\EndShipper', $endShipper);
101+
$this->assertInstanceOf('\EasyPost\EndShipper', $endShipper);
102102
$this->assertStringMatchesFormat('es_%s', $endShipper->id);
103103
$this->assertEquals($newName, $endShipper->name);
104104
}

test/cassettes/end_shipper/all.yml

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cassettes/end_shipper/create.yml

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cassettes/end_shipper/retrieve.yml

Lines changed: 150 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)