Commit bdc09cf8 authored by Patrick Barroca's avatar Patrick Barroca 🎮

dev #71412 : fix failure

parent 8195c2de
......@@ -103,6 +103,7 @@ class DoubleFinderWithoutAnyRecordTest extends DoubleFinderTestCase {
abstract class DoubleFinderWithRecordMatchingTestCase extends DoubleFinderTestCase {
/** @test */
public function shouldFindRecord() {
$this->assertFound();
......@@ -131,11 +132,20 @@ class DoubleFinderWithExistingItemTest extends DoubleFinderWithRecordMatchingTes
class DoubleFinderWithExistingItemForDeletionTest extends DoubleFinderWithRecordMatchingTestCase {
protected $_data = ['type_doc' => Class_TypeDoc::UNKNOWN,
'statut_exemplaires' => ['nb_ex' => 1],
'exemplaires' => [ ['code_barres' => '159'] ]];
public function setUp() {
parent::setUp();
$this->_prepareFixtures();
$this->_finder = new Class_Notice_BarcodeDoubleFinder($this->_data, $this->_library_id);
$this->_found = $this->_finder->find();
}
/** @test */
public function shouldHaveMatchedBarcode() {
$this->assertEquals('code_barres', $this->_finder->getMatchedCriteria());
......@@ -144,6 +154,7 @@ class DoubleFinderWithExistingItemForDeletionTest extends DoubleFinderWithRecord
class DoubleFinderWithExistingIsbnTest extends DoubleFinderWithRecordMatchingTestCase {
protected $_data = ['type_doc' => Class_TypeDoc::LIVRE,
'isbn13' => '2-85868-161-9'];
......
Markdown is supported
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