Skip to content
Snippets Groups Projects
Commit 2948f11f authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #72435 : can configure integration with authority file type

parent 291f86b6
Branches
Tags
2 merge requests!2894Dev#72435 3 explo autorite etape 1 minsoc09 communaute importer un fichier autorite,!2874Dev#72435 3 explo autorite etape 1 minsoc09 communaute importer un fichier autorite
Pipeline #4672 failed with stage
in 47 minutes and 9 seconds
...@@ -672,7 +672,6 @@ class Cosmo_DataProfileControllerPostEditFieldsTest extends Cosmo_DataProfileCon ...@@ -672,7 +672,6 @@ class Cosmo_DataProfileControllerPostEditFieldsTest extends Cosmo_DataProfileCon
class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControllerTestCase { class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControllerTestCase {
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
$this->dispatch('/cosmo/data-profile/add', true); $this->dispatch('/cosmo/data-profile/add', true);
...@@ -683,12 +682,17 @@ class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControll ...@@ -683,12 +682,17 @@ class Cosmo_DataProfileControllerAddActionTest extends Cosmo_DataProfileControll
public function formShouldBePresent() { public function formShouldBePresent() {
$this->assertXPath('//form'); $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 { class Cosmo_DataProfileControllerDeleteActionTest extends Cosmo_DataProfileControllerTestCase {
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
$this->dispatch('/cosmo/data-profile/delete/id/56', true); $this->dispatch('/cosmo/data-profile/delete/id/56', true);
......
...@@ -57,6 +57,7 @@ class IntProfilDonneesLoader extends Storm_Model_Loader { ...@@ -57,6 +57,7 @@ class IntProfilDonneesLoader extends Storm_Model_Loader {
public function getFileTypes() { public function getFileTypes() {
return [Class_IntProfilDonnees::FT_RECORDS => $this->_('Notices'), return [Class_IntProfilDonnees::FT_RECORDS => $this->_('Notices'),
Class_IntProfilDonnees::FT_AUTHORITY => $this->_('Autorités'),
Class_IntProfilDonnees::FT_PATRONS => $this->_('Abonnés'), Class_IntProfilDonnees::FT_PATRONS => $this->_('Abonnés'),
Class_IntProfilDonnees::FT_LOANS => $this->_('Prêts'), Class_IntProfilDonnees::FT_LOANS => $this->_('Prêts'),
Class_IntProfilDonnees::FT_HOLDS => $this->_('Réservations'), Class_IntProfilDonnees::FT_HOLDS => $this->_('Réservations'),
......
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