public function testOrHaving() { $this->assertInstanceOf('SQL\\SelectQueryBuilder', $this->queryBuilder->orHaving('id', 1, SelectQueryBuilder::EQUALS)); $expected = array(array('column' => 'id', 'value' => 1, 'operator' => SelectQueryBuilder::EQUALS, 'connector' => SelectQueryBuilder::LOGICAL_OR)); $this->assertEquals($expected, $this->queryBuilder->getHavingParts()); }