@@ -16,7 +16,7 @@ public function testImportByDefault()
1616 $ this ->assertEquals ($ message , $ app ->run ());
1717 $ app ->drop ('yes ' );
1818
19- $ app = new MysqlImport ([], ['-proot ' , $ sqlFile ]);
19+ $ app = new MysqlImport ([], ['-psecret ' , $ sqlFile ]);
2020 $ this ->assertEquals ($ message , $ app ->run ());
2121 $ app ->drop ('yes ' );
2222 }
@@ -30,7 +30,7 @@ public function testImportWithUserAndPassword()
3030 $ this ->assertEquals ($ message , $ app ->run ());
3131 $ app ->drop ('yes ' );
3232
33- $ app = new MysqlImport ([], ['-uroot ' , '-proot ' , $ sqlFile ]);
33+ $ app = new MysqlImport ([], ['-uroot ' , '-psecret ' , $ sqlFile ]);
3434 $ this ->assertEquals ($ message , $ app ->run ());
3535 $ app ->drop ('yes ' );
3636 }
@@ -58,7 +58,7 @@ public function testNotBlankDatabase()
5858 $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
5959 $ app ->run ();
6060
61- $ app = new MysqlImport ([], ['-proot ' , $ sqlFile ]);
61+ $ app = new MysqlImport ([], ['-psecret ' , $ sqlFile ]);
6262 $ this ->assertEquals ($ message , $ app ->run ());
6363
6464 $ app = new MysqlImport (['DB_USER ' => 'root ' , 'DB_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
@@ -100,7 +100,7 @@ public function testMissingSqlFile()
100100 $ this ->assertEquals ('[mysql-import] required sql file to import. ' , $ app ->run ());
101101
102102 $ sqlFile = __DIR__ .'/fixtures/not_exists.sql ' ;
103- $ app = new MysqlImport ([], ['-proot ' , $ sqlFile ]);
103+ $ app = new MysqlImport ([], ['-psecret ' , $ sqlFile ]);
104104 $ this ->assertEquals ("[mysql-import] sql file ' {$ sqlFile }' not found. " , $ app ->run ());
105105 }
106106
0 commit comments