Skip to content
Snippets Groups Projects
Commit 6620399a authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #13296 fix test failures

parent bcf8ff91
4 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!180Master,!104Sprint3 Dev #13296 Formation Widget,!98Sprint3 Dev #13296 Formation Widget
......@@ -20,10 +20,11 @@
*/
class ZendAfi_View_Helper_Accueil_FormationWidgetTest extends ViewHelperTestCase {
class ZendAfi_View_Helper_Accueil_FormationsWidgetTest extends ViewHelperTestCase {
public function setup() {
parent::setup();
$helper = new ZendAfi_View_Helper_Accueil_FormationsWidget(
$this->fixture('Class_Formation',
['id' => 1,
......@@ -37,27 +38,26 @@ class ZendAfi_View_Helper_Accueil_FormationWidgetTest extends ViewHelperTestCase
}
/** @test */
public function titleShouldBeBrowseJazzDomain() {
$this->assertXPathContentContains($this->_html, '//div[@class="titre"]', 'Formations');
}
/** @test */
/** @test */
public function airDogFightShouldBedisplay() {
$this->assertXPathContentContains($this->_html, '//ul/li', 'Air');
}
}
class ZendAfi_View_Helper_Accueil_FormationWidgetWithLoggedSIGBUserTest extends ViewHelperTestCase {
class ZendAfi_View_Helper_Accueil_FormationsWidgetTestWithLoggedSIGBUser extends ViewHelperTestCase {
public function setup() {
parent::setup();
Class_Formation::setTimeSource(new TimeSourceForTest('2014-05-06 14:00:00'));
$sigb_user = $this->fixture('Class_Users',
['id' => 1,
'login' => 'uR',
......@@ -85,7 +85,7 @@ class ZendAfi_View_Helper_Accueil_FormationWidgetWithLoggedSIGBUserTest extends
/** @test */
public function session1ShouldBeDisplay() {
$this->assertXPathContentContains($this->_html,'//dl/dd', 'minimum: 1, maximum: 10, current: 0');
$this->assertXPathContentContains($this->_html,'//dl/dd', 'minimum: 1, maximum: 10');
}
......
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