diff --git a/tests/library/ZendAfi/View/Helper/Accueil/FormationsWidgetTest.php b/tests/library/ZendAfi/View/Helper/Accueil/FormationsWidgetTest.php index 3f5ef0dff4b26309f13e4de0911eb3b1f9ee76e1..8840261c3c33d25557070a8fa731e7cdcffaae16 100644 --- a/tests/library/ZendAfi/View/Helper/Accueil/FormationsWidgetTest.php +++ b/tests/library/ZendAfi/View/Helper/Accueil/FormationsWidgetTest.php @@ -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'); }