Samuel Štancl
02faf2407f
Laravel 9 only
2022-08-26 21:39:05 +02:00
PHP CS Fixer
06cc7bf686
Fix code style (php-cs-fixer)
2022-08-26 19:35:44 +00:00
Samuel Štancl
55d0a9ab87
misc improvements - stronger types, exception refactor
2022-08-26 21:35:17 +02:00
Abrar Ahmad
ddc7cf49c3
switch php version based on ARG ( #924 )
2022-08-26 16:42:57 +02:00
Erik Gaal
ca2eefa30a
[WIP] Use a lighter Docker image, use it in CI ( #793 )
...
* Use action services and setup-php in workflow
* Fix codecov
* exclude master from CI
* Add space after 'up' in 'docker-compose up-d' (#900 )
* Fix ArgumentCountError on the TenantAssetsController (#894 )
* Fix ArgumentCount exception on the TenantAssetsController when no `$path` is provided
* CS
* CS
* Handle null case explicitly
* code style
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Improve Dockerfile and use it in CI
* Update Dockerfile
* mssql CI health check
* cache key
* Update ci.yml
* Update ci.yml
* Update composer.json
* register dumcommand when L8
* Update ci.yml
* Update composer.json
* Update composer.json
* Update composer.json
* wip
* removed extensions config and php version from matrix
* introduce php-cs-fixer issue for testing
* Fix code style (php-cs-fixer)
* install composer in Docker and remove setup-php step
* added pcov for coverage
* on master branch
* composer test command
* tests above services
* Update ci.yml
* Revert "register dumcommand when L8"
This reverts commit f165fc58ba .
* removed composer cache dependencies
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Bram Wubs <megawubs@users.noreply.github.com>
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2022-08-25 19:52:46 +02:00
Samuel Štancl
931c76d697
Pull 3.x changes into master ( #922 )
...
* exclude master from CI
* Add space after 'up' in 'docker-compose up-d' (#900 )
* Fix ArgumentCountError on the TenantAssetsController (#894 )
* Fix ArgumentCount exception on the TenantAssetsController when no `$path` is provided
* CS
* CS
* Handle null case explicitly
* code style
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Add support for nested tenant config override (#920 )
* feat: add support for nested tenant config override
* test: ensure nested tenant values are mapped
* Update TenantConfigTest.php
Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Bram Wubs <megawubs@users.noreply.github.com>
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: George Bishop <email.georgebishop@gmail.com>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
2022-08-22 17:59:43 +02:00
Samuel Štancl
fce95aa862
Merge branch 'master' of github.com:archtechx/tenancy
2022-08-21 18:12:27 +02:00
PHP CS Fixer
cc1bc39267
Fix code style (php-cs-fixer)
2022-08-05 13:51:48 +00:00
Abrar Ahmad
478a0d77eb
Merge branch 'master' into stein-j-readied-tenant
2022-08-05 18:50:40 +05:00
PHP CS Fixer
db4a795c3e
Fix code style (php-cs-fixer)
2022-08-04 18:30:06 +00:00
Abrar Ahmad
a45aa8e274
Improve tenants:run command ( #912 )
...
* improve `tenants:run` command
* Update Run.php
2022-08-04 20:29:39 +02:00
Abrar Ahmad
e4442cf6cb
phpunit to pest
2022-08-03 15:28:35 +05:00
Abrar Ahmad
3990aa6eb6
Merge branch 'master' into stein-j-readied-tenant
2022-08-03 15:00:46 +05:00
Samuel Štancl
e4a47f3e6e
Set default $tenant value
2022-08-02 15:21:02 +02:00
Samuel Štancl
3ea38bba4d
Merge branch 'master' of github.com:tenancy-for-laravel/v4
2022-08-02 15:01:09 +02:00
Samuel Štancl
da0072bfe8
Fix $tenant type
2022-08-02 15:01:03 +02:00
PHP CS Fixer
9c584b8394
Fix code style (php-cs-fixer)
2022-08-02 02:21:33 +00:00
Samuel Štancl
e9b6de78b2
minor code updates
2022-08-02 04:21:03 +02:00
PHP CS Fixer
3d8d670447
Fix code style (php-cs-fixer)
2022-07-28 13:30:51 +00:00
Samuel Štancl
d0baabbc9d
Merge branch 'master' of github.com:archtechx/tenancy
2022-07-28 15:30:19 +02:00
Samuel Štancl
be13160133
wip Debuggable trait
2022-07-28 15:14:29 +02:00
lukinovec
2faf9e8683
Allow using only one time constraint for clearing the pending tenants
2022-07-28 09:42:47 +02:00
lukinovec
6766237669
Remove pending tenant clearing time constraints
2022-07-27 13:01:09 +02:00
Abrar Ahmad
29634dda84
added $this->mockConsoleOutput ( #907 )
2022-07-27 01:35:55 +02:00
lukinovec
677fdb23b9
Improve writing
2022-07-26 08:16:44 +02:00
beezerk23
233a1222bf
feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail… ( #679 )
...
* feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail method and just call it in case of an exception
* throw correct exception when `$originalOnFail()` is null
* Update DomainTest.php
* convert test to pest and renamed
* Update tests/DomainTest.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-25 18:37:52 +02:00
lukinovec
371b3836b6
Correct comments
2022-07-25 15:35:08 +02:00
lukinovec
a9146ae00d
Update comments and naming
2022-07-25 14:46:56 +02:00
lukinovec
b5b0799750
Grammar fix
2022-07-25 14:06:15 +02:00
lukinovec
a834efa692
Minor config comment corrections
2022-07-25 12:10:28 +02:00
lukinovec
83f2cab944
Update config comments
2022-07-25 11:58:54 +02:00
Samuel Štancl
f9c9d8615f
Refactor tests to use pest() helper
2022-07-23 01:16:50 +02:00
Samuel Štancl
05f2a828a1
Better M1 DX
2022-07-22 22:29:56 +02:00
Samuel Štancl
2f3d4b9953
Allow pest plugin
2022-07-22 19:48:56 +02:00
Samuel Štancl
b47c5549ef
[4.x] Migrate tests to Pest ( #884 )
...
* Add Pest dependencies
* Add base Pest file
* Convert test cases
* Remove non-compound imports
* Adopt expectation API
* Optimize uses
* Shift cleanup
* phpunit -> pest
* Fix tests in PR #884 PHPUnit to Pest Converter (#885 )
* fixed tests, remove method duplications, restore necessary inner classes
* Update CommandsTest.php
* temporary checks run on `shift-64622` on branch.
* fixed `TestSeeder` class not resolved
* fixed messed up names
* removed `uses` from individual files and add it in `Pest`
* extract tests to helpers
* use pest dataset
* Update AutomaticModeTest.php
* newline
* todo convention
* resolve reviews
* added `// todo@tests`
* remove shift branch from CI workflow
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* check if I have write permission
* Convert newly added tests to Pest
Co-authored-by: Shift <shift@laravelshift.com>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
2022-07-22 19:26:59 +02:00
Abrar Ahmad
69de181b7d
removed PHP_CS_FIXER_IGNORE_ENV ( #904 )
2022-07-22 19:22:33 +02:00
lukinovec
4d7831d6f6
Improve getTenants condition
2022-07-22 15:44:19 +02:00
lukinovec
95eb49a3d3
Merge branch 'stein-j-readied-tenant' of https://github.com/archtechx/tenancy into stein-j-readied-tenant
2022-07-22 15:23:12 +02:00
PHP CS Fixer
1a911af568
Fix code style (php-cs-fixer)
2022-07-22 13:22:51 +00:00
lukinovec
60fb9b8e54
Update command that use tenants
2022-07-22 15:10:23 +02:00
lukinovec
f92b682eb3
Update tenants option trait
2022-07-22 15:10:00 +02:00
lukinovec
fd809bc81a
Remove withPending from runForMultiple
2022-07-22 15:09:37 +02:00
lukinovec
c44a4c56d5
Rename variables in CreatePendingTenants
2022-07-22 09:46:08 +02:00
PHP CS Fixer
c6161f6997
Fix code style (php-cs-fixer)
2022-07-22 07:28:16 +00:00
lukinovec
095c2e1380
Merge branch 'master' into stein-j-readied-tenant
2022-07-22 09:27:52 +02:00
lukinovec
c5f04b5731
Change 'tenant' to 'tenants' in command signature
2022-07-22 09:26:52 +02:00
lukinovec
f4136f697c
Code and comment style improvements
2022-07-22 09:24:42 +02:00
PHP CS Fixer
c0f97fa04e
Fix code style (php-cs-fixer)
2022-07-20 13:29:11 +00:00
Abrar Ahmad
97ab483173
Completing PR #881 ( #902 )
...
* install PHP CS Fixer
* Fix styling
* remove StyleCI config
* use config from archtechx/template
* Fix styling
* added `php-cs-fixer`
* Update .php-cs-fixer.php
* added GitHub token
* Update ci.yml
* Update ci.yml
* Update ci.yml
* php-cs-fixer workflow same as template
Co-authored-by: Erik Gaal <me@erikgaal.nl>
Co-authored-by: erikgaal <erikgaal@users.noreply.github.com>
2022-07-20 15:28:45 +02:00
Abrar Ahmad
627233d07a
[4.x] Don't use onDeleteCascade in the migrations ( #883 )
...
* removed `cascade` on delete for domains
* removed only `onDelete` cascade
* keep impersonation migrations unchanged
* domains set null on delete
* Update 2019_09_15_000020_create_domains_table.php
* Added DeleteDomain Job while deleting tenant.
* Update assets/TenancyServiceProvider.stub.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* renamed class
* Update DeleteDomains.php
* onDelete restrict
* revert nullable
* removed `shouldQueue` interface
* Update TenancyServiceProvider.stub.php
* fetch and delete domains individually
* Update DeleteDomains.php
* tests for `DeleteDomains` job
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-20 13:02:33 +02:00