Repo2\QueryReactor\Tests\ControllerTestCase::testSelectWithQueryCascading PHP Method

testSelectWithQueryCascading() public method

    public function testSelectWithQueryCascading()
    {
        $expression = Fixtures::getSelect();
        $cascadedQuery = $this->getQueryMock($expression);
        $cascadedQuery->expects($this->once())->method('resolve');
        $query = $this->getQueryMock($expression);
        $query->expects($this->once())->method('resolve')->will($this->returnValue($cascadedQuery));
        $this->queryAwait($query);
    }