mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 20:54:03 +00:00
wip
This commit is contained in:
parent
81a946593a
commit
0576b34cea
1 changed files with 2 additions and 2 deletions
|
|
@ -17,18 +17,18 @@ class QueueTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function queues_use_non_tenant_db_connection()
|
public function queues_use_non_tenant_db_connection()
|
||||||
{
|
{
|
||||||
|
// todo finish this test. requires using the db driver
|
||||||
$this->markTestIncomplete();
|
$this->markTestIncomplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function tenancy_is_initialized_inside_queues()
|
public function tenancy_is_initialized_inside_queues()
|
||||||
{
|
{
|
||||||
// Queue::fake();
|
|
||||||
$this->loadLaravelMigrations(['--database' => 'tenant']);
|
$this->loadLaravelMigrations(['--database' => 'tenant']);
|
||||||
Event::fake();
|
Event::fake();
|
||||||
|
|
||||||
dispatch(new TestJob());
|
dispatch(new TestJob());
|
||||||
// Queue::assertPushed(TestJob::class);
|
|
||||||
Event::assertDispatched(JobProcessing::class, function ($event) {
|
Event::assertDispatched(JobProcessing::class, function ($event) {
|
||||||
return $event->job->payload()['tenant_uuid'] === tenant('uuid');
|
return $event->job->payload()['tenant_uuid'] === tenant('uuid');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue