/** * Method to test setQuery(). * * @return void * * @covers Windwalker\Database\Driver\Mysql\MysqlDriver::setQuery */ public function testGetAndSetQuery() { $q = new MysqlQuery($this->connection); $q->select('*')->from('wind'); $this->db->setQuery($q); $q2 = $this->db->getQuery(); $this->assertSame($q, $q2); }
/** * Method to test getExpression(). * * @return void * * @covers Windwalker\Query\Query::getExpression */ public function testGetExpression() { $this->assertInstanceOf('Windwalker\\Query\\QueryExpression', $this->instance->getExpression()); }