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

Ajout fixture admin var

parent 1cd94a14
Branches
Tags
No related merge requests found
......@@ -108,6 +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->dispatch('/opac/abonne', true);
}
......@@ -118,13 +120,14 @@ class AbonneControllerNewslettersFicheActionWithOneSubscriptionTest extends Abon
public function testLinkToEditInformationsInTitle() {
$this->assertXPathContentContains("//div[@class='abonneTitre']//a[@href='/abonne/edit']",
'Modifier ma fiche');
'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");
}
......@@ -135,7 +138,7 @@ class AbonneControllerNewslettersFicheActionWithOneSubscriptionTest extends Abon
public function testLinkToEditInformationsInfoAbonnements() {
$this->assertXPathContentContains("//div[@class='abonneFiche']//a[@href='/abonne/edit']",
'Modifier mes abonnements');
'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