From d5a3960025d03a67492445a92a94e601227a9d67 Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@git-test.afi-sa.fr>
Date: Wed, 18 Apr 2012 09:05:14 +0000
Subject: [PATCH] Tests: mise en forme

---
 .../controllers/AbonneControllerPretsTest.php | 35 +++++++++++++------
 1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
index a75d770494d..f675211da35 100644
--- a/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
+++ b/tests/application/modules/opac/controllers/AbonneControllerPretsTest.php
@@ -157,29 +157,44 @@ class AbonneControllerPretsListReservationTest extends AbstractAbonneControllerP
 	}
 
 
-	public function testPageIsRendered() {
+	/** @test */
+	public function controllerShouldBeAbonne() {
 		$this->assertController('abonne');
+	}
+
+
+	/** @test */
+	public function actionShouldBeReservations() {
 		$this->assertAction('reservations');
 	}
 
 
-	public function testNomAffiche() {
-		$this->assertQueryContentContains("div.abonneTitre", 'FloFlo');
+	/** @test */
+	public function nomShouldBeFloFlo() {
+		$this->assertQueryContentContains('div.abonneTitre', 'FloFlo');
 	}
 
-	public function testViewTitrePotter() {
-		$this->assertXPathContentContains("//tr[2]//td", 'Potter');
+
+	/** @test */
+	public function titreShouldBePotter() {
+		$this->assertXPathContentContains('//tr[2]//td', 'Potter');
 	}
 
-	public function testEtatIsReservationEmise() {
-		$this->assertXPathContentContains("//tr[2]//td", 'Réservation émise');
+
+	/** @test */
+	public function etatShouldBeReservationEmise() {
+		$this->assertXPathContentContains('//tr[2]//td', 'Réservation émise');
 	}
 
-	public function testRangIsTwo() {
-		$this->assertXPathContentContains("//tr[2]//td", '2');
+
+	/** @test */
+	public function rangShouldBeTwo() {
+		$this->assertXPathContentContains('//tr[2]//td', '2');
 	}
 
-	public function testLinkDeleteReservationForPotter() {
+
+	/** @test */
+	public function linkToDeleteShouldBeAsExpected() {
 		$this->assertXPath("//tr[2]//td//a[@href='/abonne/reservations/id_delete/12']");
 	}
 }
-- 
GitLab