From 882c8c7026dc0b3e827a2520ed027cd1e30e10e7 Mon Sep 17 00:00:00 2001
From: Ghislain Loas <ghislo@sandbox.pergame.net>
Date: Mon, 4 Apr 2016 17:11:26 +0200
Subject: [PATCH] dev #35088 refacto profilte prefs

---
 .../modules/cosmo/controllers/DataProfileControllerTest.php   | 2 +-
 library/Class/IntProfilDonnees.php                            | 4 ++--
 library/Class/ProfileSerializer/Unsupported.php               | 1 -
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php b/cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php
index 0fd4755f1a2..ccebb79e6af 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 2ee15b9a905..88605e70eb7 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 4c24971142d..6c4c43712b3 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 [];
   }
 }
-- 
GitLab