8000 fix tests · laravel/framework@b47cbe5 · GitHub
[go: up one dir, main page]

Skip to content

Commit b47cbe5

Browse files
committed
fix tests
1 parent 98dbaaf commit b47cbe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Database/DatabaseConnectorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public function testMySqlConnectCallsCreateConnectionWithProperArguments($dsn, $
2828
$connector->expects($this->once())->method('getOptions')->with($this->equalTo($config))->will($this->returnValue(array('options')));
2929
$connector->expects($this->once())->method('createConnection')->with($this->equalTo($dsn), $this->equalTo($config), $this->equalTo(array('options')))->will($this->returnValue($connection));
3030
$connection->shouldReceive('prepare')->once()->with('set names \'utf8\' collate \'utf8_unicode_ci\'')->andReturn($connection);
31-
$connection->shouldReceive('execute')->once();
31+
$connection->shouldReceive('prepare')->once()->with('set session sql_mode=\'\'')->andReturn($connection);
32+
$connection->shouldReceive('execute')->times(2);
3233
$connection->shouldReceive('exec')->zeroOrMoreTimes();
3334
$result = $connector->connect($config);
3435

0 commit comments

Comments
 (0)
0