mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:54:05 +00:00
Delete duplicate test
This commit is contained in:
parent
44c616e4db
commit
20c0d8fe3c
1 changed files with 0 additions and 13 deletions
|
|
@ -134,19 +134,6 @@ test('dump command generates dump at the passed path', function() {
|
||||||
expect($schemaPath)->toBeFile();
|
expect($schemaPath)->toBeFile();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('tenant dump file gets created at the path specified in the tenancy migration parameters config', function() {
|
|
||||||
$tenant = Tenant::create();
|
|
||||||
$schemaPath = 'tests/Etc/tenant-schema-test.dump';
|
|
||||||
|
|
||||||
Artisan::call('tenants:migrate');
|
|
||||||
|
|
||||||
expect($schemaPath)->not()->toBeFile();
|
|
||||||
|
|
||||||
Artisan::call("tenants:dump --tenant='$tenant->id' --path='$schemaPath'");
|
|
||||||
|
|
||||||
expect($schemaPath)->toBeFile();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('migrate command correctly uses the dump located at the configured schema path by default', function () {
|
test('migrate command correctly uses the dump located at the configured schema path by default', function () {
|
||||||
config(['tenancy.migration_parameters.--schema-path' => 'tests/Etc/tenant-schema.dump']);
|
config(['tenancy.migration_parameters.--schema-path' => 'tests/Etc/tenant-schema.dump']);
|
||||||
$tenant = Tenant::create();
|
$tenant = Tenant::create();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue