mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:34:03 +00:00
Fix transactions
This commit is contained in:
parent
46609c5b0d
commit
c475e7a43d
11 changed files with 47 additions and 27 deletions
|
|
@ -17,7 +17,7 @@ class QueueTest extends TestCase
|
|||
/** @test */
|
||||
public function queues_use_non_tenant_db_connection()
|
||||
{
|
||||
// todo2 finish this test. requires using the db driver
|
||||
// requires using the db driver
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,14 +15,13 @@ class TenantAssetTest extends TestCase
|
|||
|
||||
// response()->file() returns BinaryFileResponse whose content is
|
||||
// inaccessible via getContent, so ->assertSee() can't be used
|
||||
// $this->get(tenant_asset($filename))->assertSuccessful(); // todo2 commented assertions
|
||||
// $this->assertFileExists($path); // todo2 commented assertions
|
||||
$this->get(tenant_asset($filename))->assertSuccessful();
|
||||
$this->assertFileExists($path);
|
||||
|
||||
$f = fopen($path, 'r');
|
||||
$content = fread($f, filesize($path));
|
||||
fclose($f);
|
||||
|
||||
// $this->assertSame('bar', $content); // todo2 commented assertions
|
||||
$this->assertTrue(true);
|
||||
$this->assertSame('bar', $content);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ class TenantClassTest extends TestCase
|
|||
/** @test */
|
||||
public function data_cache_works_properly()
|
||||
{
|
||||
// todo constructor dependencies
|
||||
// $spy = Mockery::spy(config('tenancy.storage_driver'))->makePartial();
|
||||
// $this->instance(StorageDriver::class, $spy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue