Skip to content
Snippets Groups Projects
Commit 46212440 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #30973 fix default right of pbm album to other

parent e1b01a84
Branches
Tags
5 merge requests!1553Master,!1502Master,!1501Stable,!1328Dev#30973 pnb backoffice table,!1294Dev#30973 pnb backoffice table
- ticket #30973 : [PNB] backoffice
\ No newline at end of file
......@@ -35,6 +35,7 @@ class Class_WebService_BibNumerique_Dilicom_Book extends Class_WebService_BibNum
->setISBN($this->_isbn)
->setSousTitre($this->_subtitle)
->addEditor($this->getEditeur())
->setDroits(2)
->setUsageConstraints($this->_usage_constraints)
->addItem(new Class_Album_Item());
......
......@@ -92,6 +92,13 @@ class DilicomONIXParserTest extends Storm_Test_ModelTestCase {
}
/** @test */
public function albumRightShouldBe2() {
$album = $this->_book->import();
$this->assertEquals(2, $album->getDroits());
}
/**
* @depends importAlbumTypeDocShouldBeDILICOM
* @test
......
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