Skip to content

Commit

Permalink
Failing Tests: Changed the test to use DIRECTORY_SEPARATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsam726 committed Apr 20, 2024
1 parent 79e0e7e commit a4e0375
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 a4e0375

Please sign in to comment.