Skip to content
Snippets Groups Projects
Commit 0ffc51f5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Correction test

parent 3a6141b9
Branches
Tags
No related merge requests found
......@@ -108,8 +108,8 @@ class AbonneControllerNewslettersFicheActionWithNoExistingNewslettersTest extend
class AbonneControllerNewslettersFicheActionWithOneSubscriptionTest extends AbonneControllerWithTwoNewslettersTestCase {
public function setUp() {
parent::setUp();
$this->fixture('Class_AdminVar', ['id' => 'INTERDIRE_MODIF_FICHE_ABONNE',
'valeur' => '0']);
$this->fixture('Class_AdminVar', ['id' => 'INTERDIRE_MODIF_FICHE_ABONNE',
'valeur' => '0']);
$this->dispatch('/opac/abonne', true);
}
......@@ -120,25 +120,25 @@ class AbonneControllerNewslettersFicheActionWithOneSubscriptionTest extends Abon
public function testLinkToEditInformationsInTitle() {
$this->assertXPathContentContains("//div[@class='abonneTitre']//a[@href='/abonne/edit']",
'Modifier ma fiche',
$this->_response->getBody());
'Modifier ma fiche',
$this->_response->getBody());
}
public function testInfoAbonnementNewsletterConcerts () {
$this->assertQueryContentContains('div.abonneFiche',
"Vous êtes abonné à la lettre d'information: Concerts");
"Vous êtes abonné à la lettre d'information: Concerts");
}
public function testIconeNewsletterDisplayed () {
$this->assertXPath('//div[@class="abonneFiche"]//a[contains(@href, "/abonne/edit")]//img[contains(@src, "abonnes/newsletter.png")]');
$this->assertXPath('//div[contains(@class, "abonneFiche")]//a[contains(@href, "/abonne/edit")]//img[contains(@src, "abonnes/newsletter.png")]');
}
public function testLinkToEditInformationsInfoAbonnements() {
$this->assertXPathContentContains("//div[@class='abonneFiche']//a[@href='/abonne/edit']",
'Modifier mes abonnements');
$this->assertXPathContentContains("//div[contains(@class, 'abonneFiche')]//a[@href='/abonne/edit']",
'Modifier mes abonnements');
}
}
......
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