public function testCommitInTransaction()
{
$this->connection->commit(Argument::that(function ($arg) {
if ($arg['mode'] !== 'TRANSACTIONAL') {
return false;
}
if (count($arg['mutations']) > 0) {
return false;
}
return true;
}))->shouldBeCalled()->willReturn(['foo']);
$this->operation->setConnection($this->connection->reveal());
$this->operation->commit([], ['transaction' => '1234']);
}