diff --git a/plugins/bc-mail/src/View/MailFrontAppView.php b/plugins/bc-mail/src/View/MailFrontAppView.php index 7a99759924..24d0908844 100644 --- a/plugins/bc-mail/src/View/MailFrontAppView.php +++ b/plugins/bc-mail/src/View/MailFrontAppView.php @@ -32,6 +32,7 @@ class MailFrontAppView extends BcFrontAppView * initialize * @checked * @noTodo + * @unitTest */ public function initialize(): void { diff --git a/plugins/bc-mail/tests/TestCase/View/MailFrontAppViewTest.php b/plugins/bc-mail/tests/TestCase/View/MailFrontAppViewTest.php new file mode 100644 index 0000000000..930a8957d1 --- /dev/null +++ b/plugins/bc-mail/tests/TestCase/View/MailFrontAppViewTest.php @@ -0,0 +1,31 @@ +getRequest(); + $mailFrontAppView = new MailFrontAppView($this->getRequest()); + $this->assertNotEmpty($mailFrontAppView->Mail); + $this->assertNotEmpty($mailFrontAppView->Mailfield); + $this->assertNotEmpty($mailFrontAppView->Mailform); + } +} \ No newline at end of file