Skip to content

Commit 6dfc422

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 1921794 commit 6dfc422

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/vue-starter-kit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
- name: Build vue-starter-kit
4949
run: composer run vue:build
5050
env:
51-
APP_BASE_PATH: "${{ github.workspace }}/vendor/laravel/vue-starter-kit/"
51+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit
5252

5353
- name: Execute tests
5454
run: php vendor/bin/pest
5555
env:
56-
APP_BASE_PATH: "${{ github.workspace }}/vendor/laravel/vue-starter-kit/"
56+
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit

tests/TestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
namespace Tests;
44

55
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
6+
use PHPUnit\Framework\Attributes\RequiresEnvironmentVariable;
67

8+
#[RequiresEnvironmentVariable('APP_BASE_PATH')]
79
abstract class TestCase extends BaseTestCase
810
{
911
//

tests/Unit/ExampleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

33
test('that true is true', function () {
4+
expect(isset($_SERVER['APP_BASE_PATH']))->toBeTrue();
5+
expect(isset($_ENV['APP_BASE_PATH']))->toBeTrue();
46
expect(true)->toBeTrue();
57
});

0 commit comments

Comments
 (0)