public static function selectDistinct($selectColumns = null) { $query = self::select($selectColumns); $query->distinct = true; return $query; }
/** * @test */ public function shouldCreateSelectDistinctQuery() { // when $query = Query::selectDistinct(); // then $this->assertEquals(QueryType::$SELECT, $query->type); $this->assertTrue($query->distinct); }