diff --git a/CHANGELOG.md b/CHANGELOG.md index 11c81116..a5e5d0b3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All Notable changes to `laravel-backup` will be documented in this file +###2.5.1 +- Fix tests + ###2.5.0 - Added option to specify the timeout of the mysqldump command diff --git a/tests/database/MySQLDatabaseTest.php b/tests/database/MySQLDatabaseTest.php index 7426205c..53b0e817 100644 --- a/tests/database/MySQLDatabaseTest.php +++ b/tests/database/MySQLDatabaseTest.php @@ -37,7 +37,7 @@ public function testDump() ->with(m::on(function($parameter) { $pattern = "/mysqldump --defaults-extra-file='(.*)' --skip-comments --skip-extended-insert 'testDatabase' > 'testfile.sql'/"; return preg_match($pattern, $parameter) == true; - })) + }), null) ->once() ->andReturn(true); @@ -52,7 +52,7 @@ public function testCustomSocket() $this->console, 'testDatabase', 'testUser', 'password', 'localhost', '3306', 'customSocket.sock' ); $this->console->shouldReceive('run') - ->with("/mysqldump --defaults-extra-file='(.*)' --skip-comments --skip-extended-insert 'testDatabase' > 'testfile.sql' --socket=customSocket.sock/") + ->with("/mysqldump --defaults-extra-file='(.*)' --skip-comments --skip-extended-insert 'testDatabase' > 'testfile.sql' --socket=customSocket.sock/", null) ->once() ->andReturn(true);