Skip to content
Snippets Groups Projects
Commit 718689b7 authored by Julian Maurice's avatar Julian Maurice
Browse files

hl #17733 Add unit tests for document type recognition

parent 18d97860
Branches
Tags
8 merge requests!545Master,!544Master,!543Master,!542Master,!540Hotline 6.56,!533Hotline#16604 cms urls,!528Hotline/17733 doc type recognition,!527Hotline/17733 doc type recognition
......@@ -42,3 +42,24 @@ class NoticeIntegrationTypeDocPartitionValenceTest extends NoticeIntegrationTest
$this->assertEquals(7, Class_Notice::find(1)->getTypeDoc());
}
}
class NoticeIntegrationTypeDocMatchTest extends NoticeIntegrationTestCase {
public function getProfilDonnees() {
$profile = Class_IntProfilDonnees::forKoha()->setIdProfil(114)
->setTypeDocRecognition(4, '', 'DVD')
->setTypeDocRecognition(5, '', 'DVDA');
return $profile->getRawAttributes();
}
public function setUp() {
parent::setUp();
$this->loadNotice('unimarc_doctype_DVDA');
}
/** @test */
public function recordDocTypeShouldBe5() {
$this->assertEquals(5, Class_Notice::find(1)->getTypeDoc());
}
}
00609cam0a22001692 450000100070000000500170000703500150002407300180003901000150005709000110007210000410008320000810012421000310020521500480023695100160028499501390030032158820140415030942.0 ablv-I28707 a9788850710959 a885071095X a321588 a20071024d2006 u0frey5003 ba1 a100 mlodies clbres d'Europe de l'EstbMusique imprimefMarc Toubiana 32612aMilancCarischd2006 a1 partition 119 pccouv ill. en could31 cm aDKb ** c1 f706254w2014-10-1860991737cBLV20k9.5 TOU52014-04-14n2014-11-15o0eMAVrDVDAm2014-10-1840bBLVzPle Musique et Arts Vivants
\ No newline at end of file
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