Skip to content
Snippets Groups Projects
Commit 453e97c5 authored by Sebastien ANDRE's avatar Sebastien ANDRE
Browse files

correct bug test timesource

parent e7737853
Branches
Tags
1 merge request!4830correct bug test timesource
Pipeline #25834 passed with stage
in 29 minutes and 19 seconds
......@@ -331,6 +331,8 @@ class SerialsDetailsWithNoteTest extends SerialsDetailsTestCase {
$this->_buildTemplateProfil(['id' => 789]);
Class_StatsNotices::setTimeSource(new TimeSourceForTest('2023-09-01'));
Class_Notice_SerialArticles::find(19015)
->setUnimarc('00196nas0 2200097 450 0010008000001000018000082000039000262100009000653000015000744610009000893037025 a|||||||||2012 aFakir ecologieh57iSeptembre-Novebr 2012 aFakir note d2012')
->save();
......@@ -364,6 +366,12 @@ class SerialsDetailsWithNoteTest extends SerialsDetailsTestCase {
}
public function tearDown() {
Class_StatsNotices::setTimeSource(null);
parent::tearDown();
}
/** @test */
public function divRecordSerialsShouldContainsCardTitleFakirNote() {
$this->assertXPath('//div[@class="card-text card_description card_description_Intonation_Library_View_Wrapper_SerialArticleFromArray"]/p[text()="Fakir note"]');
......
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