Skip to content

Commit

Permalink
add address test and remove idea folder
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeur7 committed Nov 14, 2024
1 parent 1d45738 commit cd93fad
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 343 deletions.
6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/php-test-framework.xml

This file was deleted.

64 changes: 0 additions & 64 deletions .idea/php.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/phpunit.xml

This file was deleted.

55 changes: 0 additions & 55 deletions .idea/shippo-php-sdk.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

174 changes: 0 additions & 174 deletions .idea/workspace.xml

This file was deleted.

27 changes: 27 additions & 0 deletions tests/Shippo/API/AddressTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace Shippo\API;
require 'vendor/autoload.php';

use Shippo\API;
use Shippo\API\Models\Components\Address;
use Shippo\API\Models\Components\AddressPaginatedList;

final class AddressTest extends IntegrationTestCase
{


public function testListAllAddresses()
{
$response = $this->getSdk()->addresses->list(
page: 1,
results: 10,
shippoApiVersion: '2018-02-08'

);

$this->assertEquals(200, $response->statusCode);
$this->assertNotNull($response->addressPaginatedList);
$this->assertInstanceOf(AddressPaginatedList::class, $response->addressPaginatedList);
}
}

0 comments on commit cd93fad

Please sign in to comment.