Commit a2d9eacb authored by Jens Segers's avatar Jens Segers

Fix exception message for different mongo versions

parent c44cce60
...@@ -104,7 +104,7 @@ class ConnectionTest extends TestCase { ...@@ -104,7 +104,7 @@ class ConnectionTest extends TestCase {
$port = Config::get('database.connections.mongodb.port', 27017); $port = Config::get('database.connections.mongodb.port', 27017);
$database = Config::get('database.connections.mongodb.database'); $database = Config::get('database.connections.mongodb.database');
$this->setExpectedException('MongoConnectionException', "Failed to connect to: $host:$port: Authentication failed on database '$database' with username 'foo': auth fails"); $this->setExpectedExceptionRegExp('MongoConnectionException', "/Failed to connect to: $host:$port: Authentication failed on database '$database' with username 'foo': auth fail/");
$connection = DB::connection('mongodb'); $connection = DB::connection('mongodb');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment