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

testEmptySelect() public method

public testEmptySelect ( )
    public function testEmptySelect()
    {
        $query = $this->getQueryMock(Fixtures::getSelect());
        $query->expects($this->once())->method('resolve')->with($this->callback(function (Result $result) {
            // no rows found in the result
            return $result->getRowsCount() === 0 && $result->traverse() instanceof \Traversable;
        }));
        $query->expects($this->never())->method('reject');
        $this->queryAwait($query);
    }