File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 48
48
- name : Build vue-starter-kit
49
49
run : composer run vue:build
50
50
env :
51
- APP_BASE_PATH : " ${{ github.workspace }}/vendor/laravel/vue-starter-kit/ "
51
+ APP_BASE_PATH : ${{ github.workspace }}/vendor/laravel/vue-starter-kit
52
52
53
53
- name : Execute tests
54
54
run : php vendor/bin/pest
55
55
env :
56
- APP_BASE_PATH : " ${{ github.workspace }}/vendor/laravel/vue-starter-kit/ "
56
+ APP_BASE_PATH : ${{ github.workspace }}/vendor/laravel/vue-starter-kit
Original file line number Diff line number Diff line change 3
3
namespace Tests ;
4
4
5
5
use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
6
+ use PHPUnit \Framework \Attributes \RequiresEnvironmentVariable ;
6
7
8
+ #[RequiresEnvironmentVariable('APP_BASE_PATH ' )]
7
9
abstract class TestCase extends BaseTestCase
8
10
{
9
11
//
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
test ('that true is true ' , function () {
4
+ expect (isset ($ _SERVER ['APP_BASE_PATH ' ]))->toBeTrue ();
5
+ expect (isset ($ _ENV ['APP_BASE_PATH ' ]))->toBeTrue ();
4
6
expect (true )->toBeTrue ();
5
7
});
You can’t perform that action at this time.
0 commit comments