Skip to content

Commit

Permalink
Update BaseFileSystemStorageTest.php (#390)
Browse files Browse the repository at this point in the history
Replaced / to DIRECTORY_SEPARATOR for passing tests on Windows
  • Loading branch information
Antikon authored and nadar committed Dec 19, 2019
1 parent 2de596e commit 20e49c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/admin/storage/BaseFileSystemStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 20e49c8

Please sign in to comment.