From d3c468952e8705357693cea542ea36559514b449 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@afi-sa.fr> Date: Tue, 21 Jul 2015 16:13:09 +0200 Subject: [PATCH] de v#27067 koha restful suggestion service test fix --- .../View/Helper/ListeSuggestionAchatTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php b/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php index 51e0a3cd7b5..cb563733485 100644 --- a/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php +++ b/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php @@ -16,13 +16,13 @@ * * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE * along with BOKEH; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once 'library/ZendAfi/View/Helper/ViewHelperTestCase.php'; class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { - + protected $_tom; protected $_pharo_by_example; @@ -32,8 +32,8 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { $this->_tom = Class_Users::newInstanceWithId(2,['nom' => 'Le', 'prenom' => 'Tom', 'mail' => 'leTom@afi-sa.fr']); - - $this->_pharo_by_example = + + $this->_pharo_by_example = Class_SuggestionAchat::newInstanceWithId(2) ->setDateCreation('2013-23-10') ->setTitre('Pharo By Example') @@ -43,7 +43,7 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { ->setCommentaire('I need') ->setUser($this->_tom); - $this->_cuisiner_le_melon = + $this->_cuisiner_le_melon = Class_SuggestionAchat::newInstanceWithId(5) ->setDateCreation('2013-21-10') ->setTitre('Cuisiner le Melon') @@ -66,13 +66,13 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { /** @test **/ public function tomShouldHavePharoByExampleInListSuggestionAchat() { - $this->assertXPathContentContains($this->_html, '//div/div[1]/dl//dd', 'Pharo By Example', $this->_html); + $this->assertXPathContentContains($this->_html, '//table/tbody/tr[1]/td', 'Pharo By Example', $this->_html); } /** @test **/ public function tomShouldHaveCuisinerLeMelonInListSuggestionAchat() { - $this->assertXPathContentContains($this->_html, '//div/div[2]/dl//dd', 'Cuisiner le Melon', $this->_html); + $this->assertXPathContentContains($this->_html, '//table/tbody/tr[2]/td', 'Cuisiner le Melon', $this->_html); } } -- GitLab