function searchPaths($paths) { if (count($paths)) { $this->_db->setQuery('SELECT DISTINCT `path` FROM `#__joomdoc_file` WHERE `path` IN (' . implode(', ', array_map(array($this->_db, 'quote'), $paths)) . ')'); return $this->_db->loadColumn(); } return array(); }
/** * Test loadColumn method * * @return void * * @since 11.1 */ public function testLoadColumn() { $query = $this->object->getQuery(true); $query->select('title'); $query->from('jos_dbtest'); $this->object->setQuery($query); $result = $this->object->loadColumn(); $this->assertThat($result, $this->equalTo(array('Testing', 'Testing2', 'Testing3', 'Testing4')), __LINE__); }