Skip to content

Commit 348cd06

Browse files
committed
Fixed test for windows
1 parent b2cce61 commit 348cd06

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/Unit/StorageTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,15 @@
5252
$filesystem->deleteDirectory('/');
5353
$filesystem->createDirectory('/');
5454

55-
$storage = new Storage('tests/Fixtures/Saloon');
55+
$path = 'some' . DIRECTORY_SEPARATOR . 'other' . DIRECTORY_SEPARATOR . 'directories' . DIRECTORY_SEPARATOR . 'example.txt';
56+
57+
$storage = new Storage('tests' . DIRECTORY_SEPARATOR . 'Fixtures' . DIRECTORY_SEPARATOR . 'Saloon');
5658

57-
expect($storage->exists('some/other/directories/example.txt'))->toBeFalse();
59+
expect($storage->exists($path))->toBeFalse();
5860

59-
$storage->put('some/other/directories/example.txt', 'Hello World');
61+
$storage->put($path, 'Hello World');
6062

61-
expect($storage->exists('some/other/directories/example.txt'))->toBeTrue();
63+
expect($storage->exists($path))->toBeTrue();
6264

63-
expect($storage->get('some/other/directories/example.txt'))->toEqual('Hello World');
65+
expect($storage->get($path))->toEqual('Hello World');
6466
});

0 commit comments

Comments
 (0)