Skip to content
Snippets Groups Projects
Commit d3c46895 authored by Laurent's avatar Laurent
Browse files

de v#27067 koha restful suggestion service

test fix
parent d3473e86
Branches
Tags
3 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1016Dev#27067 koha restful suggestion service,!1014Dev#27067 koha restful suggestion service
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
* *
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software * 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'; require_once 'library/ZendAfi/View/Helper/ViewHelperTestCase.php';
class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase {
protected $_tom; protected $_tom;
protected $_pharo_by_example; protected $_pharo_by_example;
...@@ -32,8 +32,8 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { ...@@ -32,8 +32,8 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase {
$this->_tom = Class_Users::newInstanceWithId(2,['nom' => 'Le', $this->_tom = Class_Users::newInstanceWithId(2,['nom' => 'Le',
'prenom' => 'Tom', 'prenom' => 'Tom',
'mail' => 'leTom@afi-sa.fr']); 'mail' => 'leTom@afi-sa.fr']);
$this->_pharo_by_example = $this->_pharo_by_example =
Class_SuggestionAchat::newInstanceWithId(2) Class_SuggestionAchat::newInstanceWithId(2)
->setDateCreation('2013-23-10') ->setDateCreation('2013-23-10')
->setTitre('Pharo By Example') ->setTitre('Pharo By Example')
...@@ -43,7 +43,7 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { ...@@ -43,7 +43,7 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase {
->setCommentaire('I need') ->setCommentaire('I need')
->setUser($this->_tom); ->setUser($this->_tom);
$this->_cuisiner_le_melon = $this->_cuisiner_le_melon =
Class_SuggestionAchat::newInstanceWithId(5) Class_SuggestionAchat::newInstanceWithId(5)
->setDateCreation('2013-21-10') ->setDateCreation('2013-21-10')
->setTitre('Cuisiner le Melon') ->setTitre('Cuisiner le Melon')
...@@ -66,13 +66,13 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase { ...@@ -66,13 +66,13 @@ class ListeSuggestionAchatWithSuggestionAchatTest extends ViewHelperTestCase {
/** @test **/ /** @test **/
public function tomShouldHavePharoByExampleInListSuggestionAchat() { 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 **/ /** @test **/
public function tomShouldHaveCuisinerLeMelonInListSuggestionAchat() { 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);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment