Last active
February 11, 2018 03:30
-
-
Save ldiebold/7d000f00667773b3a2ea5920c90ce53d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
public function it_can_store_a_zipped_game_file() | |
{ | |
// Storage::fake('games'); | |
$slug = "my-game"; | |
$gameFile = UploadedFile::fake()->create('foo.zip', '800'); | |
Game::storeZippedGame($gameFile, $slug); | |
Storage::disk('games')->assertExists("my-game"); | |
// Delete the directory manually! | |
Storage::disk('games')->deleteDirectory('my-game'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment