Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
modules
/
backup
/
vendor
/
backup-manager
/
backup-manager
/
spec
/
Filesystems
:
GcsFilesystemSpec.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace spec\BackupManager\Filesystems; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class GcsFilesystemSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType('BackupManager\Filesystems\GcsFilesystem'); } function it_should_recognize_its_type_with_case_insensitivity() { foreach (['gcs', 'GCS', 'Gcs'] as $type) { $this->handles($type)->shouldBe(true); } foreach ([null, 'foo'] as $type) { $this->handles($type)->shouldBe(false); } } function it_should_provide_an_instance_of_an_gcp_filesystem() { $this->get($this->getConfig())->getAdapter()->shouldHaveType(\Superbalist\Flysystem\GoogleStorage\GoogleStorageAdapter::class); } function getConfig() { return [ 'type' => 'gcs', 'keyFilePath' => '', 'project' => 'example', 'bucket' => 'example', 'prefix' => '', ]; } }