1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00
tenancy/tests
Abrar Ahmad 77c5ae1f32
[4.x] Configure attributes for synced resources when creating models (#915)
* configure attributes for creating resource

* Update ResourceSyncingTest.php

* Update ci.yml

* Update ResourceSyncingTest.php

* Update ci.yml

* cs

* comments

* Update tests/ResourceSyncingTest.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* improve comments, move method to `SyncMaster` interface

* Revert "improve comments, move method to `SyncMaster` interface"

This reverts commit 5ddd50deb9.

* Update ResourceSyncingTest.php

* Update ResourceSyncingTest.php

* update comment

* Update ResourceSyncingTest.php

* Update ResourceSyncingTest.php

* wip

* wip

* wip

* add a todo

* assert that creation attributes returns null

* classes at the end

* rename method to `getAttributesForCreation`

* Update ResourceSyncingTest.php

* update comments

* Fix little grammer

* merge default values with sync attributes and tests

* Update ResourceSyncingTest.php

* method rename

* method rename

* Update ResourceSyncingTest.php

* comments

* Update ResourceSyncingTest.php

* allow defining a mix of attribute names and default values

* add test

* code improvements

* Fix code style (php-cs-fixer)

* remove unused import

* fix all phpstan issues in resource syncing code

* Fix code style (php-cs-fixer)

* wip

* improve tests

* Update ResourceSyncingTest.php

* better names

* Update UpdateSyncedResource.php

* code style

* Update UpdateSyncedResource.php

* add comments above new tests

* methods dockblocks and correct names

* Update ResourceSyncingTest.php

* update comments

* remove different schema setup

* delete custom migrations

* self review

* grammar, code style

* refactor helpers for creating tenants

Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2022-11-03 17:51:29 +01:00
..
Etc [4.x] Configure attributes for synced resources when creating models (#915) 2022-11-03 17:51:29 +01:00
Features Pull 3.x changes into master (#922) 2022-08-22 17:59:43 +02:00
ActionTest.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
AutomaticModeTest.php get down to 59 phpstan errors 2022-09-29 22:20:55 +02:00
BatchTest.php remove version checks 2022-09-29 16:02:08 +02:00
BootstrapperTest.php remove remaining version checks 2022-09-29 16:02:40 +02:00
CachedTenantResolverTest.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
CacheManagerTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
CombinedDomainAndSubdomainIdentificationTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
CommandsTest.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
DatabasePreparationTest.php add public connection() method to the Tenant DB manager interface 2022-10-25 12:53:31 +02:00
DatabaseUsersTest.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
DebuggableTest.php wip Debuggable trait 2022-07-28 15:14:29 +02:00
DeleteDomainsJobTest.php [4.x] Migrate tests to Pest (#884) 2022-07-22 19:26:59 +02:00
DomainTest.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00
EventListenerTest.php get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
GlobalCacheTest.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00
MaintenanceModeTest.php [4.x] Update commands CLI outputs (#968) 2022-10-18 19:11:57 +02:00
PathIdentificationTest.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
PendingTenantsTest.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Pest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
QueueTest.php added $this->mockConsoleOutput (#907) 2022-07-27 01:35:55 +02:00
RequestDataIdentificationTest.php Add cookie option on Initialize Tenancy by Request identification (#980) 2022-10-18 13:52:16 +02:00
ResourceSyncingTest.php [4.x] Configure attributes for synced resources when creating models (#915) 2022-11-03 17:51:29 +01:00
ScopeSessionsTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
SingleDatabaseTenancyTest.php fix #854 2022-10-01 17:59:33 +02:00
SubdomainTest.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00
TenantAssetTest.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
TenantAwareCommandTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00
TenantDatabaseManagerTest.php [4.x] Use a dedicated DB connection for creating/deleting tenant databases (#946) 2022-10-31 12:13:54 +01:00
TenantModelTest.php Add current() and currentOrFail() tenant methods (#970) 2022-10-11 10:33:32 +02:00
TenantUserImpersonationTest.php [4.x] Make impersonation tokens require stateful guards (#935) 2022-09-02 17:46:27 +02:00
TestCase.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
UniversalRouteTest.php Refactor tests to use pest() helper 2022-07-23 01:16:50 +02:00