diff --git a/tests/application/modules/opac/controllers/CmsControllerTest.php b/tests/application/modules/opac/controllers/CmsControllerTest.php index eb3c4c443326d416dcf3d98c4d91591d4fa05d3f..d4733d4cbad103ad1ae7d03fdce84c96affef0c9 100644 --- a/tests/application/modules/opac/controllers/CmsControllerTest.php +++ b/tests/application/modules/opac/controllers/CmsControllerTest.php @@ -477,6 +477,8 @@ class CmsControllerArticleViewByDateWitoutEventDateTest extends AbstractControll } + + class CmsControllerArticleViewByDateWithRadioSummarySelectedTest extends AbstractCmsControllerArticleViewByDateTest { protected $_article_loader; @@ -490,7 +492,8 @@ class CmsControllerArticleViewByDateWithRadioSummarySelectedTest extends Abstrac /** @test */ public function articleSummaryLaFeteDeLaBananeShouldBePresent() { - $this->assertXpathContentContains('//h1', 'La fête de la banane'); + $this->assertXpathContentContains('//div[@class="titre"]//h1//a[contains(@href, "/cms/articleview/id/1")]', + 'La fête de la banane'); } /** @test */ @@ -504,6 +507,30 @@ class CmsControllerArticleViewByDateWithRadioSummarySelectedTest extends Abstrac $this->assertNotXpathContentContains('//div', ' Une fête qui glisse !'); } + + /** @test */ + public function speakStartMarkerShouldBePresent() { + $this->assertXpathContentContains('//div[@class="auto_resize article"]', '<!-- RSPEAK_START -->'); + } + + /** @test */ + public function speakStopMarkerShouldBePresent() { + $this->assertXpathContentContains('//div[@class="auto_resize article"]', '<!-- RSPEAK_STOP -->'); + } + + + /** @test */ + public function readSpeakerLinkShouldBePresent() { + $this->assertXPath('//a[@class="readspeaker"][contains(@onclick, "/cms/articleread?id=1")]', + $this->_response->getBody()); + } + + + /** @test */ + public function linkLireArticleCompleShouldBePresent() { + $this->assertXPathContentContains('//a[contains(@href, "/cms/articleview/id/1")]', + "Lire l'article complet"); + } }