Skip to content

Commit

Permalink
* Fixed a whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
JWardee committed Jun 9, 2023
1 parent 11b26b4 commit cd3f1df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
11 changes: 0 additions & 11 deletions WpMailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,3 @@
register_activation_hook(__FILE__, [$bootstrap, 'install']);
register_deactivation_hook(__FILE__, ['WpMailCatcher\Bootstrap', 'deactivate']);
register_uninstall_hook(__FILE__, ['WpMailCatcher\Bootstrap', 'uninstall']);

function mailtrap($phpmailer) {
$phpmailer->isSMTP();
$phpmailer->Host = 'sandbox.smtp.mailtrap.io';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 2525;
$phpmailer->Username = '67663a530fee8c';
$phpmailer->Password = 'b8fda32ad1336d';
}

add_action('phpmailer_init', 'mailtrap');
10 changes: 0 additions & 10 deletions testing/tests/TestLogFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,14 +437,4 @@ public function testCanDecodeAsciQuotedEncodedSubjectLine()
preg_replace('/\s+/', '', $expectedOutput)
);
}

// public function testSubjectLineHtmlIsEscaped()
// {
// $mailTable = MailAdminTable::getInstance();
// $subjectBase = '<script>alert("Hello");</script>';
// $escapedSubject = GeneralHelper::encodeAllHtml($subjectBase);
// $subject = $mailTable->column_subject(['subject' => $subjectBase]);
//
// $this->assertEquals($subject, $escapedSubject);
// }
}

0 comments on commit cd3f1df

Please sign in to comment.