Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 4, 2015
1 parent 8b5e26a commit 5af9d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions tests/database/MySQLDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 5af9d9d

Please sign in to comment.