2 declare(strict_types = 1);
18 use Prophecy\Argument;
23 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
35 protected function setUp()
38 $connection = $this->prophesize(Connection::class);
39 $connection->quoteIdentifier(Argument::cetera())->will(
function (
$args) {
40 return '"' . implode(
'"."', explode(
'.',
$args[0])) .
'"';
42 $connection->quote(Argument::cetera())->will(
function (
$args) {
43 return '\'' .
$args[0] .
'\'';
45 $connection->getDatabasePlatform()->willReturn(
new MockPlatform());
47 $this->expressionBuilder = GeneralUtility::makeInstance(ExpressionBuilder::class, $connection->reveal());