From 8dca86374a90a202b72afae9b07f39f1f39413a2 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@afi-sa.fr> Date: Thu, 27 Mar 2014 10:19:31 +0100 Subject: [PATCH] hotline#12555 fonctions auteurs Fix test: html removed from Notice#getAuteursUnimarc --- tests/library/Class/DecodageUnimarcTest.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/library/Class/DecodageUnimarcTest.php b/tests/library/Class/DecodageUnimarcTest.php index f5c0d77fd8e..7c044daf781 100644 --- a/tests/library/Class/DecodageUnimarcTest.php +++ b/tests/library/Class/DecodageUnimarcTest.php @@ -281,32 +281,30 @@ class DecodageUnimarcConcertoTest extends PHPUnit_Framework_TestCase { ->whenCalled('findFirstBy') ->with(['where' => "MATCH(formes) AGAINST('ROCHESTERxPHILHARMONICxORCHESTRA' IN BOOLEAN MODE)"]) - ->answers($orchestra) - - ->beStrict(); + ->answers($orchestra); Class_CodifAuteurFonction::newInstanceWithId('000', ['libelle' => 'On sait pas']); Class_CodifAuteurFonction::newInstanceWithId('545', ['libelle' => 'Zikos']); $this->assertEquals([ ['id' => 3, - 'libelle' => 'Sergueï Vassilievitch RACHMANINOV <font color="#666666">(Fonction indéterminée)</font>', + 'libelle' => 'Sergueï Vassilievitch RACHMANINOV (Fonction indéterminée)', 'url' => BASE_URL.'/recherche/simple/code_rebond/A3'], ['id' => 3, - 'libelle' => 'Sergueï Vassilievitch RACHMANINOV <font color="#666666">(Compositeur)</font>', + 'libelle' => 'Sergueï Vassilievitch RACHMANINOV (Compositeur)', 'url' => BASE_URL.'/recherche/simple/code_rebond/A3'], ['id' => 4, - 'libelle' => 'Jon NAKAMATSU <font color="#666666">(Musicien)</font>', + 'libelle' => 'Jon NAKAMATSU (Musicien)', 'url' => BASE_URL.'/recherche/simple/code_rebond/A4'], ['id' => 5, - 'libelle' => 'Christopher SEAMAN <font color="#666666">(Chef d\'orchestre)</font>', + 'libelle' => 'Christopher SEAMAN (Chef d\'orchestre)', 'url' => BASE_URL.'/recherche/simple/code_rebond/A5'], ['id' => 6, - 'libelle' => 'ROCHESTER PHILHARMONIC ORCHESTRA <font color="#666666">(Musicien)</font>', + 'libelle' => 'ROCHESTER PHILHARMONIC ORCHESTRA (Musicien)', 'url' => BASE_URL.'/recherche/simple/code_rebond/A6'] ], $this->concerto->getAuteursUnimarc(false, true)); -- GitLab