1
0
Fork 0
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:
lukinovec 2022-11-23 08:06:53 +01:00
parent 44c616e4db
commit 20c0d8fe3c

View file

@ -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();