Skip to content

Commit 62057dc

Browse files
committed
fix: page title checks from exact match to contains match
Resolves turnitin#694
1 parent 05d468d commit 62057dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/classes/view/turnitintooltwo_view_test.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function test_output_header() {
5353
$turnitintooltwoview->output_header($pageurl, $pagetitle, $pageheading, true);
5454

5555
$this->assertStringContainsString($pageurl, (string)$PAGE->url);
56-
$this->assertEquals($pagetitle, $PAGE->title);
56+
$this->assertStringContainsString($pagetitle, $PAGE->title);
5757
$this->assertEquals($pageheading, $PAGE->heading);
5858
}
5959

@@ -223,4 +223,4 @@ public function test_show_delete_link() {
223223
$showdeletelink = $turnitintooltwoview->show_delete_link(false, $submission, time(), 1);
224224
$this->assertEquals(false, $showdeletelink);
225225
}
226-
}
226+
}

0 commit comments

Comments
 (0)