Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DumpSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function load()

foreach ($this->customizedTables as $tableName => $tableDefinition) {
$table = new TableDefinition($this->getTable($tableName));
call_user_func_array($tableDefinition, [$table]);
call_user_func_array($tableDefinition, [$table, Factory::create()]);

$this->dumpTables[$tableName] = $table;
}
Expand Down
10 changes: 5 additions & 5 deletions tests/DumperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function it_can_dump_all_tables_without_modifications()

$this->app['config']['masked-dump.default'] = DumpSchema::define()->allTables();

$this->artisan('db:dump', [
$this->artisan('db:masked-dump', [
'output' => $outputFile
]);

Expand Down Expand Up @@ -78,7 +78,7 @@ public function it_can_mask_user_names()
$table->mask('name');
});

$this->artisan('db:dump', [
$this->artisan('db:masked-dump', [
'output' => $outputFile
]);

Expand Down Expand Up @@ -107,7 +107,7 @@ public function it_can_replace_columns_with_static_values()
$table->replace('password', 'test');
});

$this->artisan('db:dump', [
$this->artisan('db:masked-dump', [
'output' => $outputFile
]);

Expand Down Expand Up @@ -137,7 +137,7 @@ public function it_can_replace_columns_with_faker_values()
$table->replace('email', $faker->safeEmail());
});

$this->artisan('db:dump', [
$this->artisan('db:masked-dump', [
'output' => $outputFile
]);

Expand Down Expand Up @@ -165,7 +165,7 @@ public function it_can_dump_certain_tables_as_schema_only()
->schemaOnly('migrations')
->schemaOnly('users');

$this->artisan('db:dump', [
$this->artisan('db:masked-dump', [
'output' => $outputFile
]);

Expand Down