From 86a7b823c9b8422d84eedff07d0c3350d9e31a51 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Thu, 12 Feb 2015 16:47:31 +0200 Subject: [PATCH] Fixed MultiBackend test to work properly with the new supportsMethod() default. --- .../src/VuFindTest/ILS/Driver/MultiBackendTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/MultiBackendTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/MultiBackendTest.php index 428ea8005f4..822577ea582 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/MultiBackendTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/ILS/Driver/MultiBackendTest.php @@ -2228,11 +2228,11 @@ class MultiBackendTest extends \VuFindTest\Unit\TestCase $methodReturn = $driver->supportsMethod('getStatus', $patron); $this->assertTrue($methodReturn); - //Case: The method doesn't exists in any of the drivers - //Result: A return of false + //Case: No parameters are given + //Result: A return of true - $methodReturn = $driver->supportsMethod('fail', null); - $this->assertFalse($methodReturn); + $methodReturn = $driver->supportsMethod('getStatus', null); + $this->assertTrue($methodReturn); //Case: getLoginDrivers and getDefaultLoginDriver are always supported //Result: A return of true -- GitLab