diff --git a/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php b/tests/library/ZendAfi/View/Helper/ListeSuggestionAchatTest.php index 51e0a3cd7b533e8e56a168f0e32ea46f05aaec1c..cb5637334858b158af3a51f4fd64a8ff760a3b25 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); } }