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

Bootstrapper tests

This commit is contained in:
Samuel Štancl 2020-05-11 03:37:47 +02:00
parent 73fc525126
commit 6f4b9f486c
20 changed files with 266 additions and 79 deletions

View file

@ -9,6 +9,7 @@ use Stancl\Tenancy\Events\Listeners\JobPipeline;
use Stancl\Tenancy\Events\TenantCreated;
use Stancl\Tenancy\Tests\TestCase;
// todo the shouldQueue() doesnt make sense? test if it really works or if its just because of sync queue driver
class JobPipelineTest extends TestCase
{
/** @test */
@ -19,7 +20,7 @@ class JobPipelineTest extends TestCase
])->toListener());
$this->assertFalse(app()->bound('foo'));
Tenant::create();
$this->assertSame('bar', app('foo'));
@ -60,6 +61,12 @@ class JobPipelineTest extends TestCase
$this->assertSame('first job changed property', app('foo'));
}
/** @test */
public function send_can_return_multiple_arguments()
{
// todo
}
}
class FooJob