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