Skip to content

Commit

Permalink
Merge pull request #99 from savannabits/4.x-dev
Browse files Browse the repository at this point in the history
Failing Tests: Changed the test to use DIRECTORY_SEPARATOR
  • Loading branch information
coolsam726 authored Apr 20, 2024
2 parents 0a20cbf + d60cc80 commit 42d2395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/ModulesSingletonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Coolsam\Modules\Facades\FilamentModules;

test('can convert path to namespace correctly', function () {
$path = config('modules.paths.modules') . '\app\Providers\TestServiceProvider.php';
$path = config('modules.paths.modules') . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Providers' . DIRECTORY_SEPARATOR . 'TestServiceProvider.php';
$namespace = FilamentModules::convertPathToNamespace($path);
expect($namespace)->toBe($expected = 'Modules\\Providers\\TestServiceProvider', "Expected $expected Instead got " . $namespace);
});

0 comments on commit 42d2395

Please sign in to comment.