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
c8f20173
Commit
c8f20173
authored
May 18, 2018
by
Laurent
Browse files
dev #74958 more tests
parent
113f8d83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
cosmogramme/tests/php/classes/NanookRecordsIntegrationTest.php
...gramme/tests/php/classes/NanookRecordsIntegrationTest.php
+12
-2
cosmogramme/tests/php/classes/NoticeIntegrationLibermediaTest.php
...mme/tests/php/classes/NoticeIntegrationLibermediaTest.php
+7
-0
No files found.
cosmogramme/tests/php/classes/NanookRecordsIntegrationTest.php
View file @
c8f20173
...
...
@@ -99,8 +99,11 @@ class NanookRecordsIntegrationAvailabilityFacetTest extends NanookRecordsIntegra
/** @see http://forge.afi-sa.fr/issues/16358 */
class
NanookRecordsIntegrationSymphonieTest
extends
NanookRecordsIntegrationTestCase
{
public
function
getProfilDonnees
()
{
$profil
=
Class_IntProfilDonnees
::
forNanook
()
->
setIdProfil
(
110
);
return
$profil
->
getRawAttributes
();
return
Class_IntProfilDonnees
::
forNanook
()
->
setItemField
(
Class_IntProfilDonnees
::
FIELD_ITEM_ID_ORIGINE
,
[
'zone'
=>
'001'
,
'champ'
=>
'zz'
])
->
setIdProfil
(
110
)
->
getRawAttributes
();
}
...
...
@@ -161,6 +164,13 @@ class NanookRecordsIntegrationSymphonieTest extends NanookRecordsIntegrationTest
public
function
degreeShouldStayUTF8Degree
()
{
$this
->
assertContains
(
'n°'
,
Class_Notice
::
find
(
1
)
->
get_subfield
(
464
,
't'
)[
0
]);
}
/** @test */
public
function
firstItemIdOrigineShouldBe196508
()
{
$this
->
assertEquals
(
'196508'
,
Class_Exemplaire
::
find
(
1
)
->
getIdOrigine
());
}
}
...
...
cosmogramme/tests/php/classes/NoticeIntegrationLibermediaTest.php
View file @
c8f20173
...
...
@@ -71,4 +71,11 @@ class NoticeIntegrationLibermediaTest extends NoticeIntegrationTestCase {
$this
->
assertEquals
(
'HE255931'
,
$this
->
_record
->
getExemplaires
()[
0
]
->
getCodeBarres
());
}
/** @test */
public
function
firstItemIdOrigineShouldBeVtls000031488
()
{
$this
->
assertEquals
(
'vtls000031488'
,
$this
->
_record
->
getExemplaires
()[
0
]
->
getIdOrigine
());
}
}
\ No newline at end of file
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