Skip to content

Commit

Permalink
Update BaseFileSystemStorageTest.php
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 Oct 27, 2019
1 parent b03803f commit 2c0bf52
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 2c0bf52

Please sign in to comment.