Tests/Unit/Import/ImportSubQueryTest.php
/**
     * Tests behaviour of subQuery class with JUST_EXPLODE query.
     */
Tests behaviour of subQuery class with JUST_EXPLODE query.
Tests behaviour of subQuery class with JUST_EXPLODE query .
public function testImportSubQueryJustExplode()
    {
        $mockConnection = $this->getMockConnection(0, []);
        $subQuery = new ImportSubQuery(
            $mockConnection,
            'parentId',
            'keyFrom',
            'keyTo',
            'mockClass',
            ImportSubQuery::JUST_EXPLODE,
            ['test' => ImportSubQuery::SELF_ID],
            '~~~'
        );
        $this->assertEquals($subQuery->execute('1~~~2~~~3', 0), [1, 2, 3]);
    }
public function testImportSubQueryJustExplode ( ) { $ mockConnection = $ this -> getMockConnection ( 0 , [ ] ) ; $ subQuery = new ImportSubQuery ( $ mockConnection , 'parentId' , 'keyFrom' , 'keyTo' , 'mockClass' , ImportSubQuery :: JUST_EXPLODE , [ 'test' => ImportSubQuery :: SELF_ID ] , '~~~' ) ; $ this -> assertEquals ( $ subQuery -> execute ( '1~~~2~~~3' , 0 ) , [ 1 , 2 , 3 ] ) ; }
Tests behaviour of subQuery class with JUST_EXPLODE query.
Tests behaviour of subQuery class with JUST_EXPLODE query .