mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 21:14:03 +00:00
wip
This commit is contained in:
parent
d0d1f6930b
commit
7a96ff1e66
5 changed files with 49 additions and 2 deletions
27
tests/GlobalCacheTest.php
Normal file
27
tests/GlobalCacheTest.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Tests;
|
||||
|
||||
use GlobalCache;
|
||||
|
||||
class GlobalCacheTest extends TestCase
|
||||
{
|
||||
public $autoCreateTenant = false;
|
||||
public $autoInitTenancy = false;
|
||||
|
||||
/** @test */
|
||||
public function global_cache_manager_stores_data_in_global_cache()
|
||||
{
|
||||
dd(app('globalCache'));
|
||||
dd(cache());
|
||||
$this->assertSame(null, cache('foo'));
|
||||
cache(['foo' => 'bar'], 1);
|
||||
$this->assertSame('bar', cache('foo'));
|
||||
// $this->assertSame('bar', GlobalCache::get('foo'));
|
||||
// GlobalCache::put('foo', 'bar');
|
||||
dd(GlobalCache::get('foo'));
|
||||
|
||||
tenant()->create('foo.localhost');
|
||||
tenancy()->init('foo.localhost');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue