Skip to content

Commit

Permalink
unitTest_MailFrontAppView_initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
thangnn committed Apr 23, 2024
1 parent 65dbbad commit 17cda0e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/bc-mail/src/View/MailFrontAppView.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class MailFrontAppView extends BcFrontAppView
* initialize
* @checked
* @noTodo
* @unitTest
*/
public function initialize(): void
{
Expand Down
31 changes: 31 additions & 0 deletions plugins/bc-mail/tests/TestCase/View/MailFrontAppViewTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace BcMail\Test\TestCase\View;

use BaserCore\TestSuite\BcTestCase;
use BcMail\View\MailFrontAppView;

class MailFrontAppViewTest extends BcTestCase
{
public function setUp(): void
{
parent::setUp();
}

public function tearDown(): void
{
parent::tearDown();
}

/**
* test initialize
*/
public function testInitialize(): void
{
$this->getRequest();
$mailFrontAppView = new MailFrontAppView($this->getRequest());
$this->assertNotEmpty($mailFrontAppView->Mail);
$this->assertNotEmpty($mailFrontAppView->Mailfield);
$this->assertNotEmpty($mailFrontAppView->Mailform);
}
}

0 comments on commit 17cda0e

Please sign in to comment.