diff --git a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php index 0fd4755f1a27026ccd43521c3e4bcd8ca7a87f0f..ccebb79e6af7722d2e411d9ef4781664863befaa 100644 --- a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php +++ b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php @@ -579,7 +579,7 @@ class Cosmo_DataProfileControllerPostEditFieldsTest extends Cosmo_DataProfileCon [Class_IntProfilDonnees::PROFILE_FILE_TYPE => Class_IntProfilDonnees::FT_RECORDS, Class_IntProfilDonnees::PROFILE_FILE_FORMAT => Class_IntProfilDonnees::FORMAT_CSV, Class_IntProfilDonnees::PROFILE_ITEM_FIELDS => 'ean;ean'], true); - $this->assertEquals('ean;ean', $this->_nanook_profile->getLightRecordsFieldsValues()); + $this->assertEquals('ean;ean', $this->_nanook_profile->getCSVRecordFieldsValues()); } /** @test */ diff --git a/library/Class/IntProfilDonnees.php b/library/Class/IntProfilDonnees.php index 2ee15b9a905d285a5fa9daef6064e65c0be2ad41..88605e70eb73df2758e2490b01080d0c255660ac 100644 --- a/library/Class/IntProfilDonnees.php +++ b/library/Class/IntProfilDonnees.php @@ -95,7 +95,7 @@ class IntProfilDonneesLoader extends Storm_Model_Loader { } - public function getLightRecordsFields() { + public function getCSVRecordsFields() { return Class_CosmoVar::getList('champs_ascii'); } @@ -839,7 +839,7 @@ class Class_IntProfilDonnees extends Storm_Model_Abstract { } - public function getLightRecordsFieldsValues() { + public function getCSVRecordFieldsValues() { return $this->getProfilePrefs()->getUnknownFields(); } diff --git a/library/Class/ProfileSerializer/Unsupported.php b/library/Class/ProfileSerializer/Unsupported.php index 4c24971142db343f10f3e72f042c909238627758..6c4c43712b3d01f0b02ec61cf11825e5f65c9b5e 100644 --- a/library/Class/ProfileSerializer/Unsupported.php +++ b/library/Class/ProfileSerializer/Unsupported.php @@ -22,7 +22,6 @@ class Class_ProfileSerializer_Unsupported extends Class_ProfileSerializer_Abstract { public function getDatas() { - throw new RunTimeException('Unsupported format'); return []; } }