1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 02:44:03 +00:00
This commit is contained in:
Abrar Ahmad 2022-08-09 10:19:53 +05:00
parent 3814bf2183
commit 3951680a98
2 changed files with 3 additions and 4 deletions

View file

@ -2,7 +2,6 @@ name: CI
env: env:
COMPOSE_INTERACTIVE_NO_CLI: 1 COMPOSE_INTERACTIVE_NO_CLI: 1
PHP_CS_FIXER_IGNORE_ENV: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on: on:
@ -39,7 +38,7 @@ jobs:
- name: Run php-cs-fixer - name: Run php-cs-fixer
run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php
- name: Commit changes from php-cs-fixer - name: Commit changes from php-cs-fixer
uses: EndBug/add-and-commit@v9 uses: EndBug/add-and-commit@v5
with: with:
author_name: "PHP CS Fixer" author_name: "PHP CS Fixer"
author_email: "phpcsfixer@example.com" author_email: "phpcsfixer@example.com"

View file

@ -150,7 +150,7 @@ test('creating the resource in tenant database creates it in central database an
tenancy()->end(); tenancy()->end();
// Asset user was created // assert user was created
expect(CentralUser::first()->global_id)->toBe('acme'); expect(CentralUser::first()->global_id)->toBe('acme');
}); });
@ -552,7 +552,7 @@ function creatingResourceInTenantDatabaseCreatesAndMapInCentralDatabase()
tenancy()->end(); tenancy()->end();
// Asset user was created // Assert user was created
expect(CentralUser::first()->global_id)->toBe('acme'); expect(CentralUser::first()->global_id)->toBe('acme');
expect(CentralUser::first()->role)->toBe('commenter'); expect(CentralUser::first()->role)->toBe('commenter');