Last active
February 11, 2018 03:19
-
-
Save ldiebold/254f362182195d0d8c2e608efe6f4801 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"); | |
Storage::disk('games')->deleteDirectory('my-game'); | |
// assert in database | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment