1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00

Write more tests, fix filesystem support for s3

This commit is contained in:
Samuel Štancl 2019-02-08 23:59:27 +01:00
parent dc21bfa37a
commit 2c69c37032
6 changed files with 30 additions and 3 deletions

View file

@ -15,6 +15,18 @@ class TenantStorageTest extends TestCase
$this->storage = app(StorageDriver::class);
}
/** @test */
public function deleting_a_tenant_works()
{
$abc = tenant()->create('abc.localhost');
$this->assertTrue(tenant()->all()->contains($abc));
tenant()->delete($abc['uuid']);
$this->assertFalse(tenant()->all()->contains($abc));
}
/** @test */
public function put_works_with_key_and_value_as_separate_args()
{