Skip to content

Commit ccd9ba7

Browse files
committed
Use kit.com domain
1 parent f35cd9d commit ccd9ba7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/wpunit/APITest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6279,7 +6279,7 @@ function( $response ) use ( $httpCode, $httpMessage, $body ) { // phpcs:ignore G
62796279
public function mockAccessTokenExpiredResponse( $response, $parsed_args, $url )
62806280
{
62816281
// Only mock requests made to the /account endpoint.
6282-
if ( strpos( $url, 'https://api.convertkit.com/v4/account' ) === false ) {
6282+
if ( strpos( $url, 'https://api.kit.com/v4/account' ) === false ) {
62836283
return $response;
62846284
}
62856285

@@ -6319,7 +6319,7 @@ public function mockAccessTokenExpiredResponse( $response, $parsed_args, $url )
63196319
public function mockRefreshTokenResponse( $response, $parsed_args, $url )
63206320
{
63216321
// Only mock requests made to the /token endpoint.
6322-
if ( strpos( $url, 'https://api.convertkit.com/oauth/token' ) === false ) {
6322+
if ( strpos( $url, 'https://api.kit.com/oauth/token' ) === false ) {
63236323
return $response;
63246324
}
63256325

tests/wpunit/ResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function testRefreshLandingPages()
361361
// did call both `get_landing_pages` and `get_legacy_landing_pages` methods.
362362
$this->assertArrayHasKey($_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'], $resources);
363363
$this->assertArrayHasKey('url', $resources[ $_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'] ]);
364-
$this->assertEquals('https://app.convertkit.com/landing_pages/' . $_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'], $resources[ $_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'] ]['url']);
364+
$this->assertEquals('https://app.kit.com/landing_pages/' . $_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'], $resources[ $_ENV['CONVERTKIT_API_LEGACY_LANDING_PAGE_ID'] ]['url']);
365365

366366
// Delete resources.
367367
$this->resource->delete();

0 commit comments

Comments
 (0)