Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bibliossimo
opacce
Commits
e12a60ec
Commit
e12a60ec
authored
May 09, 2018
by
Laurent
Browse files
dev #74958 test fix
parent
21ca2ebf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php
...n/modules/cosmo/controllers/DataProfileControllerTest.php
+1
-11
library/Class/IntProfilDonnees.php
library/Class/IntProfilDonnees.php
+1
-1
No files found.
cosmogramme/cosmozend/tests/application/modules/cosmo/controllers/DataProfileControllerTest.php
View file @
e12a60ec
...
...
@@ -54,16 +54,6 @@ abstract class Cosmo_DataProfileControllerTestCase extends CosmoControllerTestCa
[
'id'
=>
'id_article_periodique'
,
'valeur'
=>
null
,
'liste'
=>
"0:aucun
\r\n
1:pergame
\r\n
2:opsys indexpresse
\r\n
3:Koha
\r\n
4:Orphée"
]);
$this
->
fixture
(
'Class_CosmoVar'
,
[
'id'
=>
'champ_code_barres'
,
'valeur'
=>
null
,
'liste'
=>
"f:995
$f
\r\n
h:995
$h
\r\n
b:995
$b
\r\n
997:997
$a
\r\n
852:852
$g
\r\n
a:995
$a
\r\n
999:999
$i
\r\n
996:996
$f
\r\n
949:949$6"
]);
$this
->
fixture
(
'Class_CosmoVar'
,
[
'id'
=>
'champ_cote'
,
'valeur'
=>
null
,
'liste'
=>
"k:995
$k
\r\n
f:995
$f
"
]);
}
...
...
@@ -292,7 +282,7 @@ class Cosmo_DataProfileControllerEditUnimarcKohaTest extends Cosmo_DataProfileCo
/** @test */
public
function
itemCodebarreIn949Dollar6ShouldBePresent
()
{
$this
->
assertXPath
(
'//form//select[@id="champ_code_barres"]/option[@value="949"][@label
=
"949$6"]'
);
$this
->
assertXPath
(
'//form//select[@id="champ_code_barres"]/option[@value="949"][
contains(
@label
,
"949$6"
)
]'
);
}
...
...
library/Class/IntProfilDonnees.php
View file @
e12a60ec
...
...
@@ -206,7 +206,7 @@ class IntProfilDonneesLoader extends Storm_Model_Loader {
$values
[
'852'
]
=
'852$g ('
.
$this
->
_
(
'obsolète'
)
.
')'
;
$values
[
'999'
]
=
'999$i ('
.
$this
->
_
(
'obsolète'
)
.
')'
;
$values
[
'996'
]
=
'996$f ('
.
$this
->
_
(
'obsolète'
)
.
')'
;
$values
[
'949'
]
=
'949$
a
('
.
$this
->
_
(
'obsolète'
)
.
')'
;
$values
[
'949'
]
=
'949$
6
('
.
$this
->
_
(
'obsolète'
)
.
')'
;
return
$values
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment