We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98dbaaf commit b47cbe5Copy full SHA for b47cbe5
1 file changed
tests/Database/DatabaseConnectorTest.php
@@ -28,7 +28,8 @@ public function testMySqlConnectCallsCreateConnectionWithProperArguments($dsn, $
28
$connector->expects($this->once())->method('getOptions')->with($this->equalTo($config))->will($this->returnValue(array('options')));
29
$connector->expects($this->once())->method('createConnection')->with($this->equalTo($dsn), $this->equalTo($config), $this->equalTo(array('options')))->will($this->returnValue($connection));
30
$connection->shouldReceive('prepare')->once()->with('set names \'utf8\' collate \'utf8_unicode_ci\'')->andReturn($connection);
31
- $connection->shouldReceive('execute')->once();
+ $connection->shouldReceive('prepare')->once()->with('set session sql_mode=\'\'')->andReturn($connection);
32
+ $connection->shouldReceive('execute')->times(2);
33
$connection->shouldReceive('exec')->zeroOrMoreTimes();
34
$result = $connector->connect($config);
35
0 commit comments