Skip to content
Snippets Groups Projects
Commit c8f20173 authored by Laurent's avatar Laurent
Browse files

dev #74958 more tests

parent 113f8d83
Branches
Tags
1 merge request!2658Dev#74958 demo barcelone import marc21
Pipeline #4182 passed with stage
in 35 minutes and 10 seconds
......@@ -99,8 +99,11 @@ class NanookRecordsIntegrationAvailabilityFacetTest extends NanookRecordsIntegra
/** @see http://forge.afi-sa.fr/issues/16358 */
class NanookRecordsIntegrationSymphonieTest extends NanookRecordsIntegrationTestCase {
public function getProfilDonnees() {
$profil = Class_IntProfilDonnees::forNanook()->setIdProfil(110);
return $profil->getRawAttributes();
return Class_IntProfilDonnees::forNanook()
->setItemField(Class_IntProfilDonnees::FIELD_ITEM_ID_ORIGINE,
['zone' => '001', 'champ' => 'zz'])
->setIdProfil(110)
->getRawAttributes();
}
......@@ -161,6 +164,13 @@ class NanookRecordsIntegrationSymphonieTest extends NanookRecordsIntegrationTest
public function degreeShouldStayUTF8Degree() {
$this->assertContains('n°', Class_Notice::find(1)->get_subfield(464, 't')[0]);
}
/** @test */
public function firstItemIdOrigineShouldBe196508() {
$this->assertEquals('196508',
Class_Exemplaire::find(1)->getIdOrigine());
}
}
......
......@@ -71,4 +71,11 @@ class NoticeIntegrationLibermediaTest extends NoticeIntegrationTestCase {
$this->assertEquals('HE255931',
$this->_record->getExemplaires()[0]->getCodeBarres());
}
/** @test */
public function firstItemIdOrigineShouldBeVtls000031488() {
$this->assertEquals('vtls000031488',
$this->_record->getExemplaires()[0]->getIdOrigine());
}
}
\ 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