Ejemplo n.º 1
0
 public function testFilterRecursively()
 {
     $query = new Query();
     $query->filterWhere(['and', ['like', 'name', ''], ['like', 'title', ''], ['id' => 1], ['not', ['like', 'name', '']]]);
     $this->assertEquals(['and', ['id' => 1]], $query->where);
 }