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

Fix #28 associative arrays being converted into objects

This commit is contained in:
Samuel Štancl 2019-02-11 19:34:52 +01:00
parent 0bb18bb11a
commit 7fc89271f3
2 changed files with 12 additions and 3 deletions

View file

@ -93,6 +93,15 @@ class TenantStorageTest extends TestCase
$this->assertSame([1, 2], tenant()->get('foo'));
}
/** @test */
public function associative_arrays_can_be_stored()
{
$data = ['a' => 'b', 'c' => 'd'];
tenant()->put('foo', $data);
$this->assertSame($data, tenant()->get('foo'));
}
/** @test */
public function put_returns_the_value_when_two_arguments_are_used()
{