@@ -12,7 +12,7 @@ public function testImportByDefault()
1212 $ sqlFile = __DIR__ .'/fixtures/database.sql ' ;
1313 $ message = "[mysql-import] database named 'database' successfully imported. " ;
1414
15- $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'root ' ], [$ sqlFile ]);
15+ $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
1616 $ this ->assertEquals ($ message , $ app ->run ());
1717 $ app ->drop ('yes ' );
1818
@@ -26,7 +26,7 @@ public function testImportWithUserAndPassword()
2626 $ sqlFile = __DIR__ .'/fixtures/database.sql ' ;
2727 $ message = "[mysql-import] database named 'database' successfully imported. " ;
2828
29- $ app = new MysqlImport (['MYSQL_USER ' => 'root ' , 'MYSQL_PASSWORD ' => 'root ' ], [$ sqlFile ]);
29+ $ app = new MysqlImport (['MYSQL_USER ' => 'root ' , 'MYSQL_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
3030 $ this ->assertEquals ($ message , $ app ->run ());
3131 $ app ->drop ('yes ' );
3232
@@ -40,7 +40,7 @@ public function testDropAndCreateDatabase()
4040 $ sqlFile = __DIR__ .'/fixtures/database.sql ' ;
4141 $ message = "[mysql-import] database named 'database' successfully imported. " ;
4242
43- $ app = new MysqlImport (['MYSQL_USER ' => 'root ' , 'MYSQL_PASSWORD ' => 'root ' ], [$ sqlFile ]);
43+ $ app = new MysqlImport (['MYSQL_USER ' => 'root ' , 'MYSQL_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
4444
4545 $ app ->run ();
4646 $ app ->drop ();
@@ -55,13 +55,13 @@ public function testNotBlankDatabase()
5555 $ sqlFile = __DIR__ .'/fixtures/database.sql ' ;
5656 $ message = "[mysql-import] required blank database for import. " ;
5757
58- $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'root ' ], [$ sqlFile ]);
58+ $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
5959 $ app ->run ();
6060
6161 $ app = new MysqlImport ([], ['-proot ' , $ sqlFile ]);
6262 $ this ->assertEquals ($ message , $ app ->run ());
6363
64- $ app = new MysqlImport (['DB_USER ' => 'root ' , 'DB_PASSWORD ' => 'root ' ], [$ sqlFile ]);
64+ $ app = new MysqlImport (['DB_USER ' => 'root ' , 'DB_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
6565 $ this ->assertEquals ($ message , $ app ->run ());
6666
6767 $ app ->drop ('yes ' );
@@ -96,7 +96,7 @@ public function testConnectionProblemWrongHost()
9696
9797 public function testMissingSqlFile ()
9898 {
99- $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'root ' ], []);
99+ $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'secret ' ], []);
100100 $ this ->assertEquals ('[mysql-import] required sql file to import. ' , $ app ->run ());
101101
102102 $ sqlFile = __DIR__ .'/fixtures/not_exists.sql ' ;
@@ -129,7 +129,7 @@ public function testDefaultDatabaseName()
129129 {
130130 $ sqlFile = __DIR__ .'/fixtures/database.sql ' ;
131131
132- $ app = new MysqlImport (['WORDPRESS_DB_PASSWORD ' => 'root ' ], [$ sqlFile ]);
132+ $ app = new MysqlImport (['WORDPRESS_DB_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
133133 $ this ->assertEquals ([
134134 'state ' => 'ready ' ,
135135 'host ' => 'mysql ' ,
@@ -143,7 +143,7 @@ public function testSyntaxError()
143143 $ sqlFile = __DIR__ .'/fixtures/syntax_error.sql ' ;
144144 $ message = "[mysql-import] You have an error in your SQL syntax; check the manual that corresponds to " ;
145145
146- $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'root ' ], [$ sqlFile ]);
146+ $ app = new MysqlImport (['MYSQL_ROOT_PASSWORD ' => 'secret ' ], [$ sqlFile ]);
147147 $ this ->assertStringStartsWith ($ message , $ app ->run ());
148148 }
149149}
0 commit comments