diff --git a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php index 66770949a42f76767c4059e47a76fadc75c30fea..c3b423de8239dfc982bb5cbdf73924bd8ae8a5a6 100644 --- a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php +++ b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php @@ -672,7 +672,6 @@ class Cosmo_DataProfileControllerPostEditFieldsTest extends Cosmo_DataProfileCon class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControllerTestCase { - public function setUp() { parent::setUp(); $this->dispatch('/cosmo/data-profile/add', true); @@ -683,12 +682,17 @@ class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControll public function formShouldBePresent() { $this->assertXPath('//form'); } + + + /** @test */ + public function authorityTypeShouldBeAvailable() { + $this->assertXPath('//form//select[@id="type_fichier"]//option[@value="' . Class_IntProfilDonnees::FT_AUTHORITY . '"]'); + } } class Cosmo_DataProfileControllerDeleteActionTest extends Cosmo_DataProfileControllerTestCase { - public function setUp() { parent::setUp(); $this->dispatch('/cosmo/data-profile/delete/id/56', true); diff --git a/library/Class/IntProfilDonnees.php b/library/Class/IntProfilDonnees.php index 47cfd3c349792dfdd0e93f1873bf42eebe3f6db4..6acdeeb432754c58220aef83a83b9b6f0bdd0e31 100644 --- a/library/Class/IntProfilDonnees.php +++ b/library/Class/IntProfilDonnees.php @@ -57,6 +57,7 @@ class IntProfilDonneesLoader extends Storm_Model_Loader { public function getFileTypes() { return [Class_IntProfilDonnees::FT_RECORDS => $this->_('Notices'), + Class_IntProfilDonnees::FT_AUTHORITY => $this->_('Autorités'), Class_IntProfilDonnees::FT_PATRONS => $this->_('Abonnés'), Class_IntProfilDonnees::FT_LOANS => $this->_('Prêts'), Class_IntProfilDonnees::FT_HOLDS => $this->_('Réservations'),