Skip to content
Snippets Groups Projects
Commit 365569df authored by Demian Katz's avatar Demian Katz
Browse files

Updated integration tests to better namespace and to use new search backend.

parent bd65c089
No related merge requests found
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki/vufind2:unit_tests Wiki * @link http://vufind.org/wiki/vufind2:unit_tests Wiki
*/ */
namespace VuFind\IntegrationTest\Connection; namespace VuFindTest\Integration\Connection;
/** /**
* ResultFeed Test Class * ResultFeed Test Class
...@@ -45,7 +45,8 @@ class SolrTest extends \VuFindTest\Unit\TestCase ...@@ -45,7 +45,8 @@ class SolrTest extends \VuFindTest\Unit\TestCase
*/ */
public function testAlphaBrowseSeeAlso() public function testAlphaBrowseSeeAlso()
{ {
$solr = \VuFind\Connection\Manager::connectToIndex(); $solr = $this->getServiceManager()->get('VuFind\Search\BackendManager')
->get('Solr');
$result = $solr->alphabeticBrowse('author', 'Dublin Society', 0, 1); $result = $solr->alphabeticBrowse('author', 'Dublin Society', 0, 1);
$item = $result['Browse']['items'][0]; $item = $result['Browse']['items'][0];
$this->assertEquals($item['count'], count($item['ids'])); $this->assertEquals($item['count'], count($item['ids']));
...@@ -62,7 +63,8 @@ class SolrTest extends \VuFindTest\Unit\TestCase ...@@ -62,7 +63,8 @@ class SolrTest extends \VuFindTest\Unit\TestCase
*/ */
public function testAlphaBrowseUseInstead() public function testAlphaBrowseUseInstead()
{ {
$solr = \VuFind\Connection\Manager::connectToIndex(); $solr = $this->getServiceManager()->get('VuFind\Search\BackendManager')
->get('Solr');
$result = $solr->alphabeticBrowse('author', 'Dublin Society, Royal', 0, 1); $result = $solr->alphabeticBrowse('author', 'Dublin Society, Royal', 0, 1);
$item = $result['Browse']['items'][0]; $item = $result['Browse']['items'][0];
$this->assertEquals(0, $item['count']); $this->assertEquals(0, $item['count']);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki/vufind2:unit_tests Wiki * @link http://vufind.org/wiki/vufind2:unit_tests Wiki
*/ */
namespace VuFind\IntegrationTest\View\Helper\Root; namespace VuFindTest\Integration\View\Helper\Root;
use VuFind\View\Helper\Root\ResultFeed; use VuFind\View\Helper\Root\ResultFeed;
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment