Skip to content

Commit 35864ab

Browse files
fix(testing): compute paths so they dont only work on my machine...
1 parent c79e283 commit 35864ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Feature/GetConfigurationCommandTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44

55
use Itiden\Polywarp\Tests\TestCase;
66

7+
use function Orchestra\Testbench\workbench_path;
8+
79
it('returns the config in json format', function (): void {
810
/** @var TestCase $this */
911

1012
$this->artisan('polywarp:config')
1113
->expectsOutput(json_encode([
1214
'output_path' => config('polywarp.output_path'),
1315
'content_paths' => [
14-
'/Users/neo/workspace/packages/laravel-polywarp/workbench/resources/js/**/*.{ts,tsx,vue}',
16+
workbench_path('/resources/js/**/*.{ts,tsx,vue}'),
1517
],
1618
'translation_directories' => [
17-
'/Users/neo/workspace/packages/laravel-polywarp/vendor/laravel/framework/src/Illuminate/Translation/lang/**/*.{php,json}',
18-
'/Users/neo/workspace/packages/laravel-polywarp/workbench/lang/**/*.{php,json}'
19+
realpath(workbench_path('../vendor/laravel/framework/src/Illuminate/Translation/lang')) . '/**/*.{php,json}',
20+
workbench_path('/lang/**/*.{php,json}'),
1921
]
2022
]))
2123
->assertExitCode(0);

0 commit comments

Comments
 (0)