public function test_Should_ReturnFalse_When_DeployCommandFails() { Storage::shouldReceive('put')->once()->andReturn(0); $deployCommander = new StorageDeployCommander(); $result = $deployCommander->deploy(new App\Models\Deployment()); $this->assertFalse($result, 'Expected deploy command to fail.'); }