Skip to content

Commit 18bf8b8

Browse files
authored
Merge pull request #5 from mokhosh/fix-tests
Fix tests
2 parents aa842d6 + 73adfef commit 18bf8b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/DumpSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function load()
9797

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

102102
$this->dumpTables[$tableName] = $table;
103103
}

tests/DumperTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function it_can_dump_all_tables_without_modifications()
4949

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

52-
$this->artisan('db:dump', [
52+
$this->artisan('db:masked-dump', [
5353
'output' => $outputFile
5454
]);
5555

@@ -78,7 +78,7 @@ public function it_can_mask_user_names()
7878
$table->mask('name');
7979
});
8080

81-
$this->artisan('db:dump', [
81+
$this->artisan('db:masked-dump', [
8282
'output' => $outputFile
8383
]);
8484

@@ -107,7 +107,7 @@ public function it_can_replace_columns_with_static_values()
107107
$table->replace('password', 'test');
108108
});
109109

110-
$this->artisan('db:dump', [
110+
$this->artisan('db:masked-dump', [
111111
'output' => $outputFile
112112
]);
113113

@@ -137,7 +137,7 @@ public function it_can_replace_columns_with_faker_values()
137137
$table->replace('email', $faker->safeEmail());
138138
});
139139

140-
$this->artisan('db:dump', [
140+
$this->artisan('db:masked-dump', [
141141
'output' => $outputFile
142142
]);
143143

@@ -165,7 +165,7 @@ public function it_can_dump_certain_tables_as_schema_only()
165165
->schemaOnly('migrations')
166166
->schemaOnly('users');
167167

168-
$this->artisan('db:dump', [
168+
$this->artisan('db:masked-dump', [
169169
'output' => $outputFile
170170
]);
171171

0 commit comments

Comments
 (0)