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

Fixed broken test.

parent d4ac2671
No related merge requests found
...@@ -103,14 +103,27 @@ class NoILSTest extends \VuFindTest\Unit\TestCase ...@@ -103,14 +103,27 @@ class NoILSTest extends \VuFindTest\Unit\TestCase
} }
/** /**
* Test that driver makes holdings visible when in MARC mode. * Test that driver makes holdings visible when in custom mode.
* *
* @return void * @return void
*/ */
public function testMarcHoldingsVisibility() public function testCustomHoldingsVisibility()
{ {
$this->driver $this->driver->setConfig(
->setConfig(['settings' => ['useHoldings' => 'marc']]); [
'settings' => ['useHoldings' => 'custom'],
'Holdings' => [
'number' => 0,
'availability' => false,
'status' => 'foo',
'use_unknown_message' => true,
'location' => 'bar',
'reserve' => 'N',
'callnumber' => 'xyzzy',
'barcode' => null,
]
]
);
$this->assertTrue($this->driver->hasHoldings('foo')); $this->assertTrue($this->driver->hasHoldings('foo'));
} }
......
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