Skip to content

Commit 34c14ee

Browse files
BilalBilal
authored andcommitted
test environment file
1 parent a04ab63 commit 34c14ee

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

tests/CashierFastspringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class CashierFastspringTest extends TestCase
2525

2626
public static function setUpBeforeClass()
2727
{
28-
if (file_exists(__DIR__.'/../.env')) {
29-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
28+
if (file_exists(__DIR__.'/.env')) {
29+
$dotenv = new \Dotenv\Dotenv(__DIR__);
3030
$dotenv->load();
3131
}
3232
}

tests/FastspringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class FastspringTest extends TestCase
1919

2020
public static function setUpBeforeClass()
2121
{
22-
if (file_exists(__DIR__.'/../.env')) {
23-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
22+
if (file_exists(__DIR__.'/.env')) {
23+
$dotenv = new \Dotenv\Dotenv(__DIR__);
2424
$dotenv->load();
2525
}
2626
}

tests/InvoiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class InvoiceTest extends TestCase
1717

1818
public static function setUpBeforeClass()
1919
{
20-
if (file_exists(__DIR__.'/../.env')) {
21-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
20+
if (file_exists(__DIR__.'/.env')) {
21+
$dotenv = new \Dotenv\Dotenv(__DIR__);
2222
$dotenv->load();
2323
}
2424
}

tests/ListenersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class ListenersTest extends TestCase
1919

2020
public static function setUpBeforeClass()
2121
{
22-
if (file_exists(__DIR__.'/../.env')) {
23-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
22+
if (file_exists(__DIR__.'/.env')) {
23+
$dotenv = new \Dotenv\Dotenv(__DIR__);
2424
$dotenv->load();
2525
}
2626
}

tests/SubscriptionPeriodTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class SubscriptionPeriodTest extends TestCase
1515

1616
public static function setUpBeforeClass()
1717
{
18-
if (file_exists(__DIR__.'/../.env')) {
19-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
18+
if (file_exists(__DIR__.'/.env')) {
19+
$dotenv = new \Dotenv\Dotenv(__DIR__);
2020
$dotenv->load();
2121
}
2222
}

tests/SubscriptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class SubscriptionTest extends TestCase
1919

2020
public static function setUpBeforeClass()
2121
{
22-
if (file_exists(__DIR__.'/../.env')) {
23-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
22+
if (file_exists(__DIR__.'/.env')) {
23+
$dotenv = new \Dotenv\Dotenv(__DIR__);
2424
$dotenv->load();
2525
}
2626
}

tests/WebhookControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class WebhookControllerTest extends TestCase
1313
{
1414
public static function setUpBeforeClass()
1515
{
16-
if (file_exists(__DIR__.'/../.env')) {
17-
$dotenv = new \Dotenv\Dotenv(__DIR__.'/../');
16+
if (file_exists(__DIR__.'/.env')) {
17+
$dotenv = new \Dotenv\Dotenv(__DIR__);
1818
$dotenv->load();
1919
}
2020
}

0 commit comments

Comments
 (0)