Skip to content

Commit b3c8163

Browse files
committed
Fix env var
1 parent e87ec33 commit b3c8163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/EndToEnd/settings/SettingImportExportCest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ public function _before(EndToEndTester $I)
4444
public function testExportConfiguration(EndToEndTester $I)
4545
{
4646
// Click the Export button.
47-
// This will download the file to $_ENV['WP_ROOT_FOLDER'].
47+
// This will download the file to $_ENV['WORDPRESS_ROOT_DIR'].
4848
$I->click('#mainform a#export');
4949

5050
// Wait 2 seconds for the download to complete.
5151
sleep(2);
5252

5353
// Check downloaded file exists and contains some expected information.
54-
$I->openFile($_ENV['WP_ROOT_FOLDER'] . '/ckwc-export.json');
54+
$I->openFile($_ENV['WORDPRESS_ROOT_DIR'] . '/ckwc-export.json');
5555
$I->seeInThisFile('{"settings":{"enabled":"yes"');
5656
$I->seeInThisFile('"access_token":"' . $_ENV['CONVERTKIT_OAUTH_ACCESS_TOKEN'] . '","refresh_token":"' . $_ENV['CONVERTKIT_OAUTH_REFRESH_TOKEN'] . '",');
5757

5858
// Delete the file.
59-
$I->deleteFile($_ENV['WP_ROOT_FOLDER'] . '/ckwc-export.json');
59+
$I->deleteFile($_ENV['WORDPRESS_ROOT_DIR'] . '/ckwc-export.json');
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)