PhpBench\Tests\Unit\Storage\Driver\Dbal\Visitor\SqlVisitorTest::testGroupJoin PHP Method

testGroupJoin() public method

It should add a join for groups when needed.
public testGroupJoin ( )
    public function testGroupJoin()
    {
        $constraint = $this->prophesize(Comparison::class);
        $constraint->getComparator()->willReturn('$eq');
        $constraint->getField()->willReturn('group');
        $constraint->getValue()->willReturn('one');
        $sql = $this->visitor->visit($constraint->reveal());
        $this->assertRegExp('{LEFT JOIN sgroup_subject}', $sql[0]);
        $this->assertRegExp('{sgroup_subject.sgroup = :param0}', $sql[0]);
    }