Skip to content

Commit

Permalink
Fix Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
justusdieckmann committed Jun 12, 2024
1 parent 9030543 commit 9062a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions step/email/tests/lib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public function test_replace_placeholders(): void {
$course1 = $this->getDataGenerator()->create_course(['fullname' => 'Course 1', 'shortname' => 'C1']);
$course2 = $this->getDataGenerator()->create_course(['fullname' => 'Course 2', 'shortname' => 'C2']);
$lib = new \tool_lifecycle\step\email();
$callReplacePlaceholders = function($strings, $user, $stepid, $mailentries) {
$callreplaceplaceholders = function($strings, $user, $stepid, $mailentries) {
return $this->replace_placeholders($strings, $user, $stepid, $mailentries);
};
$response = $callReplacePlaceholders->call($lib, [
$response = $callreplaceplaceholders->call($lib, [
"##firstname##\n##lastname##\n##courses##\n##shortcourses##",
"##firstname##<br>##lastname##<br>##courses-html##<br>##shortcourses-html##"
"##firstname##<br>##lastname##<br>##courses-html##<br>##shortcourses-html##",
], $user1, 0, [(object) ['courseid' => $course1->id], (object) ['courseid' => $course2->id]]);

$this->assertCount(2, $response);
Expand Down

0 comments on commit 9062a33

Please sign in to comment.