execute() public method

Executes the query and returns the result
public execute ( boolean $cacheResult = false ) : Neos\Flow\Persistence\QueryResultInterface
$cacheResult boolean If the result cache should be used
return Neos\Flow\Persistence\QueryResultInterface The query result
 /**
  * @test
  */
 public function executeReturnsQueryResultInstance()
 {
     $result = $this->query->execute();
     $this->assertInstanceOf(Persistence\Generic\QueryResult::class, $result);
 }