Skip to content
Snippets Groups Projects
Commit d5a39600 authored by pbarroca's avatar pbarroca
Browse files

Tests: mise en forme

parent 0817dc6e
Branches
Tags
No related merge requests found
......@@ -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']");
}
}
......
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