From 2c0bf52f907a25453025e78a4c24b1bfef64e8b0 Mon Sep 17 00:00:00 2001 From: Anton Ikonnikov Date: Sun, 27 Oct 2019 12:44:09 +0300 Subject: [PATCH] Update BaseFileSystemStorageTest.php Replaced / to DIRECTORY_SEPARATOR for passing tests on Windows --- tests/admin/storage/BaseFileSystemStorageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/admin/storage/BaseFileSystemStorageTest.php b/tests/admin/storage/BaseFileSystemStorageTest.php index 76b3a1ff52..1c6e674bfd 100644 --- a/tests/admin/storage/BaseFileSystemStorageTest.php +++ b/tests/admin/storage/BaseFileSystemStorageTest.php @@ -15,17 +15,17 @@ private function getStorage() public function testHttpPath() { - $this->assertContains('storage/foo.jpg', $this->getStorage()->fileHttpPath('foo.jpg')); + $this->assertContains('storage'.DIRECTORY_SEPARATOR.'foo.jpg', $this->getStorage()->fileHttpPath('foo.jpg')); } public function testAbsoluteHttpPath() { - $this->assertContains('storage/foo.jpg', $this->getStorage()->fileAbsoluteHttpPath('foo.jpg')); + $this->assertContains('storage'.DIRECTORY_SEPARATOR.'foo.jpg', $this->getStorage()->fileAbsoluteHttpPath('foo.jpg')); } public function testServerPath() { - $this->assertContains('storage/foo.jpg', $this->getStorage()->fileServerPath('foo.jpg')); + $this->assertContains('storage'.DIRECTORY_SEPARATOR.'foo.jpg', $this->getStorage()->fileServerPath('foo.jpg')); } public function testBaseFileSystemStorage()