Tests/Unit/Source/ImportSourceTest.php
/**
     * Test default behaviour of ImportSource with other binding.
     */
Test default behaviour of ImportSource with other binding.
Test default behaviour of ImportSource with other binding .
public function testImportSourceOtherBindings()
    {
        $sql = 'test';
        $mockStatement = $this->getMockStatement();
        $mockConnection = $this->getMockConnection($sql, $mockStatement, ['this', 'that', null ]);
        $mockManager = $this->getMockManager();
        $mockEvent = $this->getMock('ONGR\ConnectionsBundle\Pipeline\Event\SourcePipelineEvent');
        $import = new ImportSource(
            $mockConnection,
            $mockManager,
            [],
            $sql,
            self::DEFAULT_REPOSITORY,
            self::DEFAULT_SHOP_ID,
            self::DEFAULT_LANG_ID,
            ['this' => 'that']
        );
        $import->onSource($mockEvent);
    }
public function testImportSourceOtherBindings ( ) { $ sql = 'test' ; $ mockStatement = $ this -> getMockStatement ( ) ; $ mockConnection = $ this -> getMockConnection ( $ sql , $ mockStatement , [ 'this' , 'that' , null ] ) ; $ mockManager = $ this -> getMockManager ( ) ; $ mockEvent = $ this -> getMock ( 'ONGR\ConnectionsBundle\Pipeline\Event\SourcePipelineEvent' ) ; $ import = new ImportSource ( $ mockConnection , $ mockManager , [ ] , $ sql , self :: DEFAULT_REPOSITORY , self :: DEFAULT_SHOP_ID , self :: DEFAULT_LANG_ID , [ 'this' => 'that' ] ) ; $ import -> onSource ( $ mockEvent ) ; }
Test default behaviour of ImportSource with other binding.
Test default behaviour of ImportSource with other binding .