1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:24:04 +00:00
Commit graph

57 commits

Author SHA1 Message Date
Samuel Štancl
fbe43fbb04 Restructure config 2020-05-21 15:05:05 +02:00
Samuel Štancl
1a8d150f2c Change bootstrappers namespace 2020-05-13 18:19:59 +02:00
Samuel Štancl
c75c5b3879 Testing 6.x support even for Assert 2020-05-13 06:39:16 +02:00
Samuel Štancl
e1a3b1f7c9 Laravel 6 support for testing 2020-05-13 06:32:07 +02:00
Samuel Štancl
de53b81c0e Change default tenant model, write more tests, cleanup 2020-05-13 06:23:41 +02:00
Samuel Štancl
86a98b2bc8 Queue tests 2020-05-11 05:22:55 +02:00
Samuel Štancl
cb2bd018aa Improve HTTP tests with custom assertion method 2020-05-10 19:53:34 +02:00
Samuel Štancl
bd9aad229b vague first draft of v3. TenantModelTest is passing 2020-05-08 04:37:43 +02:00
Samuel Štancl
3bb2759fe2
[3.x] DB users (#382)
* Initial draft

* Apply fixes from StyleCI

* Use CI on master branch too

* Pass correct argument to queued DB creators/deleters

* Apply fixes from StyleCI

* Remove new interface from MySQLDBManager

* Make phpunit run

* Apply fixes from StyleCI

* Fix static property

* Default databaseName

* Use database transactions for creating users & granting permissions

* Apply fixes from StyleCI

* Get old tests to pass

* Apply fixes from StyleCI

* Add tests for PermissionControlledMySQLDatabaseManager

* Apply fixes from StyleCI

* Write test for extra config, fix bug with extra config

* Apply fixes from StyleCI
2020-05-03 18:12:27 +02:00
Samuel Štancl
5972364075
[3.x] Rename facades (#387)
* Remove Facade suffix from facades, fix #386

* Apply fixes from StyleCI

* Fix facade test
2020-05-03 17:59:35 +02:00
Samuel Štancl
526f0826a4
Use seeder params in tenants:seed instead of just the automatic seeder (#317)
* Use seeder params in tenants:seed instead of just the automatic seeder

* Left trim - from option names

* Use no seeder params for tests
2020-03-17 15:59:45 +01:00
Noor Adiana
d0023c482a
Add support for postgres schema (#237)
* Add support for postgres schema

* wip

* Apply fixes from StyleCI

* revert to db as default for pgsql

* Move separate_by to database

* Fixing testing

* Fixing style

* Reverted change

* Store string instead of Connection instance

* Remove use statement

* Add use statement for DB facade

* mysql -> pgsql

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2020-03-10 20:15:07 +01:00
curious-jim
06ee1ff0e2
Migration paths (#268)
* allow multiple paths for tenant migrations

* tests: allow multiple paths for tenant migrations

* Update tests/CommandsTest.php

Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>

* Update src/Traits/DealsWithMigrations.php

Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>

* Update tests/CommandsTest.php

Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>

* Update src/Traits/DealsWithMigrations.php

Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>

* Update tests/TestCase.php

Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2020-02-16 12:10:50 +01:00
Samuel Štancl
cfcb2574c2
[2.1.0] Central queue connections (#181)
* Central queues

* Better dependency injection

* tenancy=false => central=true; move config to env setup

* Apply fixes from StyleCI
2019-10-17 21:00:52 +02:00
Samuel Štancl
c965ca5c93
[2.x] Restructure drivers config (#151)
* Restructure drivers config

* Apply fixes from StyleCI
2019-09-30 18:38:32 +02:00
Samuel Štancl
4b5554dcac Fix issues with bootstrappers' state 2019-09-27 22:35:59 +02:00
Samuel Štancl
97d88af798 Disable RedisTenancyBootstrapper by default 2019-09-27 21:08:46 +02:00
Samuel Štancl
0fe2d2de87 Fix 'no such table' 2019-09-20 17:06:55 +02:00
Samuel Štancl
c9903cd43c Clean up 2019-09-19 20:32:09 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
50a77ee826 Fix some tests 2019-09-16 17:36:32 +02:00
Samuel Štancl
1532ccf019 Fix some tests 2019-09-16 16:57:55 +02:00
stancl
359766ccfa Apply fixes from StyleCI 2019-09-15 15:44:41 +00:00
Samuel Štancl
c65b6839ff Tenant-specific connections, some work to get tests running 2019-09-15 17:44:26 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +02:00
Samuel Štancl
dabaff1338 Remove Tenant facade, move facades to Facades 2019-09-08 17:24:03 +02:00
Samuel Štancl
74da4ddfde DB manager create & delete database functions 2019-09-08 15:47:58 +02:00
Samuel Štancl
2fd3662eb7
[1.8.0] Use strict types (#115)
* Use strict types

* Apply fixes from StyleCI

* Fix str_repeat

* Fix false json decode
2019-08-23 18:18:26 +02:00
stancl
84890cdd1e Apply fixes from StyleCI 2019-08-16 16:21:59 +00:00
Samuel Štancl
9df78eb9c2
[1.7.0] Add DB storage driver (#82) 2019-08-16 14:36:49 +02:00
Samuel Štancl
4aa35322da Add event prevents, Tenant facade 2019-08-14 22:16:51 +02:00
Samuel Štancl
d77d05e620 Use env vars instead of a python script for ./test 2019-08-10 10:59:23 +02:00
Samuel Štancl
15f09e59df
[1.7.0] Add tenants:run (#81)
* wip

* Apply fixes from StyleCI

* first implementation

* Apply fixes from StyleCI

* Add support for arguments and options

* Apply fixes from StyleCI

* Write docs, add support for = in arg/opt value

* Apply fixes from StyleCI

* add $ [ci skip]
2019-08-09 19:06:00 +02:00
Samuel Štancl
13048002ef remove loadDotEnv() 2019-08-04 20:42:50 +02:00
Samuel Štancl
0dc8c80a02 Fix Redis scan for predis, make phpunit use multiple configs (e.g. different Redis drivers) 2019-08-04 20:04:25 +02:00
Samuel Štancl
0ff607d1d8 styleci 2019-08-04 17:43:25 +02:00
Samuel Štancl
60bfbce97b Merge branch '1.x' of github.com:stancl/tenancy into 1.x 2019-08-04 17:42:08 +02:00
Samuel Štancl
89990799f2 add phpunit.xml variations 2019-08-04 17:40:44 +02:00
Samuel Štancl
7c598ae2fe wip 2019-08-03 21:25:00 +02:00
Samuel Štancl
eceacd9422
Apply fixes from StyleCI (#80) 2019-08-02 20:01:10 +02:00
Samuel Štancl
2757e8f76c Fix tests 2019-07-30 22:04:10 +02:00
Samuel Štancl
92ebc1f01b
Add support for global cache (#78) 2019-07-30 21:05:30 +02:00
Samuel Štancl
dc30354699
Dockerize phpunit (#66) 2019-07-12 21:44:26 +02:00
Samuel Štancl
1b6759084f
Add Predis support (#59)
* wip

* Add Predis support

* Enable phpredis extension only for some builds

* Add note about phpredis

* Fix if command

* Revert travis changes & add a version check to predis tests
2019-07-03 14:48:55 +02:00
Samuel Štancl
e7b5a77a6b
Data separation tests (#58)
* Add purge()

* Add DataSeparationTest
2019-07-01 12:28:22 +02:00
Samuel Štancl
e1c4dc8934 Register the facade in TestCase 2019-02-27 22:22:09 +01:00
Samuel Štancl
78fd7d43f6
Add 5.8 support (#33) 2019-02-27 18:22:34 +01:00
Samuel Štancl
e1def355f9 Add command tests 2019-02-09 11:53:48 +01:00
Samuel Štancl
2c69c37032 Write more tests, fix filesystem support for s3 2019-02-08 23:59:27 +01:00
Samuel Štancl
22fc843ce3 Fix a lot of bugs, fix #23 2019-02-08 22:44:46 +01:00