示例#1
0
 /**
  * @test
  */
 public function it_returns_the_results_as_a_collection()
 {
     $query = new QueryBuilder();
     $this->assertInstanceOf(Collection::class, $query->results());
 }
示例#2
0
 /**
  * Start a new query for terms of this type.
  *
  * @return QueryBuilder
  */
 public function newQuery()
 {
     return QueryBuilder::make()->setModel($this);
 }