Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fezfez committed Oct 14, 2022
2 parents eb67b78 + 8205847 commit 6ebaad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions tests/Databases/MysqlDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testGenerateAValidDatabaseDumpCommand(): void
'3306',
'bar',
'baz',
'test'
'test',
);

self::assertSame("mysqldump --routines --host='foo' --port='3306' --user='bar' --password='baz' 'test' > 'outputPath'", $sUT->getDumpCommandLine('outputPath'));
Expand All @@ -29,7 +29,7 @@ public function testGenerateAValidDatabaseDumpCommandWithEmptyPassword(): void
'3306',
'bar',
'',
'test'
'test',
);

self::assertSame("mysqldump --routines --host='foo' --port='3306' --user='bar' 'test' > 'outputPath'", $sUT->getDumpCommandLine('outputPath'));
Expand All @@ -46,7 +46,7 @@ public function testGenerateAValidDatabaseDumpCommandWithSsl(): void
true,
true,
['tutu', ' '],
['test']
['test'],
);

self::assertSame("mysqldump --routines --single-transaction --ssl --ignore-table='test.test' tutu --host='foo' --port='3306' --user='bar' --password='baz' 'test' > 'outputPath'", $sUT->getDumpCommandLine('outputPath'));
Expand All @@ -60,7 +60,7 @@ public function testGenerateAValidDatabaseDumpCommandWithSingleTransaction(): vo
'bar',
'baz',
'test',
true
true,
);

self::assertSame("mysqldump --routines --single-transaction --host='foo' --port='3306' --user='bar' --password='baz' 'test' > 'outputPath'", $sUT->getDumpCommandLine('outputPath'));
Expand All @@ -73,7 +73,7 @@ public function testGenerateAValidDatabaseRestoreCommand(): void
'3306',
'bar',
'baz',
'test'
'test',
);
self::assertSame("mysql --host='foo' --port='3306' --user='bar' --password='baz' 'test' -e \"source outputPath\"", $sUT->getRestoreCommandLine('outputPath'));
}
Expand All @@ -89,7 +89,7 @@ public function testGenerateAValidDatabaseRestoreCommandWithSsl(): void
true,
true,
['toto'],
['test']
['test'],
);
self::assertSame("mysql --ssl --host='foo' --port='3306' --user='bar' --password='baz' 'test' -e \"source outputPath\"", $sUT->getRestoreCommandLine('outputPath'));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Databases/PostgresqlDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testGenerateAValidDatabaseDumpCommand(): void
'3306',
'bar',
'baz',
'test'
'test',
);

self::assertSame("PGPASSWORD='baz' pg_dump --clean --host='foo' --port='3306' --username='bar' 'test' -f 'outputPath'", $sUT->getDumpCommandLine('outputPath'));
Expand All @@ -29,7 +29,7 @@ public function testGenerateAValidDatabaseRestoreCommand(): void
'3306',
'bar',
'baz',
'test'
'test',
);
self::assertSame("PGPASSWORD='baz' psql --host='foo' --port='3306' --user='bar' 'test' -f 'outputPath'", $sUT->getRestoreCommandLine('outputPath'));
}
Expand Down

0 comments on commit 6ebaad0

Please sign in to comment.