Skip to content

Commit

Permalink
fix: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emileNetter committed Oct 16, 2023
1 parent 5b2321f commit 7bd0ee4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,5 @@ public function testVerifyCallback()
$callback = self::$auth->verifyCallback('callback-id');
$this->assertSame($callback['accessToken'], 'callback test');
$this->assertSame($callback['refreshToken'], 'callback test');
$this->assertSame(self::$auth->accessToken, 'callback test');
$this->assertSame(self::$auth->refreshToken, 'callback test');
}
}
2 changes: 1 addition & 1 deletion tests/CustomersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testReactivateSubscription()
*/
public function testswitchSubscriptionWithPrice()
{
$result = self::$customers->switchSubscriptionOffer('customer-1', 'subscription-1', 'offer-1', ['price' => 'price_id']);
$result = self::$customers->switchSubscriptionOffer('customer-1', 'subscription-1', 'offer-1', ['priceId' => 'price_id']);
$this->assertSame($result['username'], 'user@test.com');
$this->assertSame($result['subscription']['id'], 'subscription-1');
$this->assertSame($result['subscription']['price'], 'price_id');
Expand Down

0 comments on commit 7bd0ee4

Please sign in to comment.