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

Refactor tests to use pest() helper

This commit is contained in:
Samuel Štancl 2022-07-23 01:16:50 +02:00
parent 05f2a828a1
commit f9c9d8615f
26 changed files with 128 additions and 127 deletions

View file

@ -37,7 +37,7 @@ test('config is merged and removed', function () {
expect(config('services.paypal'))->toBe(['public' => 'foo', 'private' => 'bar']);
tenancy()->end();
$this->assertSame([
pest()->assertSame([
'public' => null,
'private' => null,
], config('services.paypal'));
@ -66,14 +66,14 @@ test('the value can be set to multiple config keys', function () {
]);
tenancy()->initialize($tenant);
$this->assertSame([
pest()->assertSame([
'public1' => 'foo',
'public2' => 'foo',
'private' => 'bar',
], config('services.paypal'));
tenancy()->end();
$this->assertSame([
pest()->assertSame([
'public1' => null,
'public2' => null,
'private' => null,