public function testGetSetConditionsParams() { $query = new Query(Query::SELECT); $this->object->setConditions(function (Query $query) { $query->where('status', 1); }); $this->assertEquals([], $query->getWhere()->getParams()); $query->bindCallback($this->object->getConditions(), $this->object); $this->assertEquals([new Expr('status', '=', 1)], $query->getWhere()->getParams()); }