diff --git a/module/VuFind/src/VuFindTest/Unit/ILSDriverTestCase.php b/module/VuFind/src/VuFindTest/Unit/ILSDriverTestCase.php new file mode 100644 index 0000000000000000000000000000000000000000..42e59fe5fc6265bf85c27fe8855d9185904c1419 --- /dev/null +++ b/module/VuFind/src/VuFindTest/Unit/ILSDriverTestCase.php @@ -0,0 +1,59 @@ +<?php + +/** + * Abstract base class for ILS driver test cases. + * + * PHP version 5 + * + * Copyright (C) Villanova University 2010. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * @category VuFind2 + * @package Tests + * @author David Maus <maus@hab.de> + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License + * @link http://vufind.org/wiki/vufind2:unit_tests Wiki + */ +namespace VuFindTest\Unit; + +/** + * Abstract base class for ILS driver test cases. + * + * @category VuFind2 + * @package Tests + * @author David Maus <maus@hab.de> + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License + * @link http://vufind.org/wiki/vufind2:unit_tests Wiki + */ +abstract class ILSDriverTestCase extends TestCase +{ + /** + * ILS driver + * + * @var \VuFind\ILS\Driver\AbstractBase + */ + protected $driver; + + /** + * Test that driver complains about missing configuration. + * + * @return void + */ + public function testMissingConfiguration() + { + $this->setExpectedException('VuFind\Exception\ILS'); + $this->driver->init(); + } +} diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AlephTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AlephTest.php index 5f7510e6bbc03d7b5f1c6f9d5ac0095146b1b5ee..20e55c0efe0a525ed3ac25682ea5185230360d25 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AlephTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AlephTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Aleph; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class AlephTest extends \VuFindTest\Unit\TestCase +class AlephTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class AlephTest extends \VuFindTest\Unit\TestCase { $this->driver = new Aleph(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AmicusTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AmicusTest.php index 6f8dc71439c6137447ddc995d81e972489f7cf7b..a1149d646f42f6ba27fb3be190cb25d19ab98933 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AmicusTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/AmicusTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Amicus; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class AmicusTest extends \VuFindTest\Unit\TestCase +class AmicusTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class AmicusTest extends \VuFindTest\Unit\TestCase { $this->driver = new Amicus(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/ClaviusSQLTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/ClaviusSQLTest.php index dfd6636b84e8c7ce3d5d053685c2d802873822d0..97991ffdaa4bc6cd9441f42a538a1afa6ee9397c 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/ClaviusSQLTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/ClaviusSQLTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\ClaviusSQL; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class ClaviusSQLTest extends \VuFindTest\Unit\TestCase +class ClaviusSQLTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class ClaviusSQLTest extends \VuFindTest\Unit\TestCase { $this->driver = new ClaviusSQL(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/DAIATest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/DAIATest.php index 28ef40ac4db8d681e01b3ee2ae2c680c8ab69a85..e44600480769faa6fac20a68e33f1a1fbd237268 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/DAIATest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/DAIATest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\DAIA; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class DAIATest extends \VuFindTest\Unit\TestCase +class DAIATest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class DAIATest extends \VuFindTest\Unit\TestCase { $this->driver = new DAIA(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/EvergreenTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/EvergreenTest.php index e330742ba5ef9905526a7f5a3f577032cadf5cef..f5d28aa0a6d4dc0975396d62196b116827cd663f 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/EvergreenTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/EvergreenTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Evergreen; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class EvergreenTest extends \VuFindTest\Unit\TestCase +class EvergreenTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class EvergreenTest extends \VuFindTest\Unit\TestCase { $this->driver = new Evergreen(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonTest.php index 37d446a58995bf93209a62f4adfffe53ec14492c..6254d17760ce3d2a11a7a03278406f692d47c29e 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Horizon; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class HorizonTest extends \VuFindTest\Unit\TestCase +class HorizonTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class HorizonTest extends \VuFindTest\Unit\TestCase { $this->driver = new Horizon(new \VuFind\Date\Converter()); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonXMLAPITest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonXMLAPITest.php index 52fe4eadaeca455216fb24bb66fe04759bf88c56..5b027071b0836105c57ff1bce5d6654d145e5334 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonXMLAPITest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/HorizonXMLAPITest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\HorizonXMLAPI; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class HorizonXMLAPITest extends \VuFindTest\Unit\TestCase +class HorizonXMLAPITest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class HorizonXMLAPITest extends \VuFindTest\Unit\TestCase { $this->driver = new HorizonXMLAPI(new \VuFind\Date\Converter()); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/InnovativeTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/InnovativeTest.php index b1f9262913203d4c92d1b7772413963349122b82..f3f3df5f3889b5822cc0287455b5299023167b4b 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/InnovativeTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/InnovativeTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Innovative; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class InnovativeTest extends \VuFindTest\Unit\TestCase +class InnovativeTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class InnovativeTest extends \VuFindTest\Unit\TestCase { $this->driver = new Innovative(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/KohaTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/KohaTest.php index a3bd403809002ffd0f6e332a5861b84d971c3d9e..84fb19756621adeeb0e7c2a55f6857abdc935f1c 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/KohaTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/KohaTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Koha; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class KohaTest extends \VuFindTest\Unit\TestCase +class KohaTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class KohaTest extends \VuFindTest\Unit\TestCase { $this->driver = new Koha(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/NewGenLibTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/NewGenLibTest.php index db3cf69b1efbb6cf38d4302b1e366f43bc12422c..672c4595ba46fba620420ea0375c1ae1b1237b93 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/NewGenLibTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/NewGenLibTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\NewGenLib; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class NewGenLibTest extends \VuFindTest\Unit\TestCase +class NewGenLibTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class NewGenLibTest extends \VuFindTest\Unit\TestCase { $this->driver = new NewGenLib(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PICATest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PICATest.php index 1b56cb302031a4505223ba4dafe1fc53f6ee4aeb..84eef101cc93f62540312adebe5822228e50d887 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PICATest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PICATest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\PICA; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class PICATest extends \VuFindTest\Unit\TestCase +class PICATest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class PICATest extends \VuFindTest\Unit\TestCase { $this->driver = new PICA(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PolarisTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PolarisTest.php index ec0f7e86ab5e5870f7a97cb91d20f52ca5188da8..fb68bc8ab3539c74b06b30ad0eff1a38823752b2 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PolarisTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/PolarisTest.php @@ -37,15 +37,8 @@ use VuFind\ILS\Driver\Polaris; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class PolarisTest extends \VuFindTest\Unit\TestCase +class PolarisTest extends \VuFindTest\Unit\ILSDriverTestCase { - /** - * Driver object - * - * @var Polaris - */ - protected $driver; - /** * Constructor */ @@ -53,15 +46,4 @@ class PolarisTest extends \VuFindTest\Unit\TestCase { $this->driver = new Polaris(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/UnicornTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/UnicornTest.php index 9d15f290571497fccbc51cbf74fa9201ac540518..0517d0c948973c8668ae1ffde8a83c35bad04039 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/UnicornTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/UnicornTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Unicorn; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class UnicornTest extends \VuFindTest\Unit\TestCase +class UnicornTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class UnicornTest extends \VuFindTest\Unit\TestCase { $this->driver = new Unicorn(new \VuFind\Date\Converter()); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VirtuaTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VirtuaTest.php index e174c99d4add9b2118e85f39a8efa9f0045540b5..e0ed85c968c851fa239d979d8d1624a54df43f56 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VirtuaTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VirtuaTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Virtua; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class VirtuaTest extends \VuFindTest\Unit\TestCase +class VirtuaTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class VirtuaTest extends \VuFindTest\Unit\TestCase { $this->driver = new Virtua(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerRestfulTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerRestfulTest.php index ba0bd611c5ae72ddc9c966d53db4c658eb9978a7..606bb76fac3cb48740e425e85506804193ebc538 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerRestfulTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerRestfulTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\VoyagerRestful; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class VoyagerRestfulTest extends \VuFindTest\Unit\TestCase +class VoyagerRestfulTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class VoyagerRestfulTest extends \VuFindTest\Unit\TestCase { $this->driver = new VoyagerRestful(new \VuFind\Date\Converter()); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerTest.php index cfbe0a708c6cf10dea965f5cf5ff2274f754b151..e30348e278eeeb284b1e7821610db82d55aae881 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/VoyagerTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\Voyager; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class VoyagerTest extends \VuFindTest\Unit\TestCase +class VoyagerTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class VoyagerTest extends \VuFindTest\Unit\TestCase { $this->driver = new Voyager(new \VuFind\Date\Converter()); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIP2Test.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIP2Test.php index 003232ef594e4a8643d86f39fa29939e1af5dc0d..40be5c09c2d685708d1e5e16084c3c758a7f24a5 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIP2Test.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIP2Test.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\XCNCIP2; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class XCNCIP2Test extends \VuFindTest\Unit\TestCase +class XCNCIP2Test extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class XCNCIP2Test extends \VuFindTest\Unit\TestCase { $this->driver = new XCNCIP2(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIPTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIPTest.php index 1974b6ddd46b5b1d5513da47563f89b73f7538e3..56056cce5e205cb40c60ee9d2d136c0d3ab84f87 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIPTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/XCNCIPTest.php @@ -37,10 +37,8 @@ use VuFind\ILS\Driver\XCNCIP; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page */ -class XCNCIPTest extends \VuFindTest\Unit\TestCase +class XCNCIPTest extends \VuFindTest\Unit\ILSDriverTestCase { - protected $driver; - /** * Constructor */ @@ -48,15 +46,4 @@ class XCNCIPTest extends \VuFindTest\Unit\TestCase { $this->driver = new XCNCIP(); } - - /** - * Test that driver complains about missing configuration. - * - * @return void - */ - public function testMissingConfiguration() - { - $this->setExpectedException('VuFind\Exception\ILS'); - $this->driver->init(); - } } \ No newline at end of file