From 0576b34cea0755745154ff4cb1c573c952399696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 19 Aug 2019 14:23:10 +0200 Subject: [PATCH] wip --- tests/QueueTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/QueueTest.php b/tests/QueueTest.php index aa0bfa0c..e0e57a5f 100644 --- a/tests/QueueTest.php +++ b/tests/QueueTest.php @@ -17,18 +17,18 @@ class QueueTest extends TestCase /** @test */ public function queues_use_non_tenant_db_connection() { + // todo finish this test. requires using the db driver $this->markTestIncomplete(); } /** @test */ public function tenancy_is_initialized_inside_queues() { - // Queue::fake(); $this->loadLaravelMigrations(['--database' => 'tenant']); Event::fake(); dispatch(new TestJob()); - // Queue::assertPushed(TestJob::class); + Event::assertDispatched(JobProcessing::class, function ($event) { return $event->job->payload()['tenant_uuid'] === tenant('uuid'); });