File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Cybex \Protector \Exceptions \FailedImportException ;
6
6
use Cybex \Protector \Exceptions \FailedMysqlCommandException ;
7
+ use Cybex \Protector \Exceptions \FailedWipeException ;
7
8
use Cybex \Protector \Exceptions \FileNotFoundException ;
8
9
use Cybex \Protector \Exceptions \InvalidConnectionException ;
9
10
use Cybex \Protector \Exceptions \InvalidEnvironmentException ;
@@ -166,8 +167,12 @@ public function throwsExceptionOnMysqlFailedShellCommand()
166
167
167
168
$ this ->protector ->withConnectionName (null );
168
169
169
- $ this ->expectException (FailedImportException ::class);
170
+ $ this ->expectException (FailedWipeException ::class);
170
171
$ this ->protector ->importDump ($ this ->filePath );
172
+
173
+ // Without wiping the database, we expect the import to fail instead.
174
+ $ this ->expectException (FailedImportException::class);
175
+ $ this ->protector ->importDump ($ this ->filePath , ['no-wipe ' => true ]);
171
176
}
172
177
173
178
/**
You can’t perform that action at this time.
0 commit comments