Skip to content

Commit

Permalink
Merge pull request #4086 from HungDV2022/unittest_MailContentsControl…
Browse files Browse the repository at this point in the history
…ler_redirectEditForm

MailContentsController::redirectEditForm() ユニットテスト
  • Loading branch information
HungDV2022 authored Dec 17, 2024
2 parents 6208f60 + 99b885b commit 64602c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private function redirectEditMail($template)
* @return Response
* @checked
* @noTodo
* @unitTest
*/
private function redirectEditForm($template)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ public function test_redirectEditMail()
*/
public function test_redirectEditForm()
{
$this->markTestIncomplete('このテストは、まだ実装されていません。');
$rs = $this->execPrivateMethod($this->MailContentsController, 'redirectEditForm', ['default']);
$this->assertEquals(302, $rs->getStatusCode());
$this->assertEquals(
['https://localhost/baser/admin/bc-theme-file/theme_files/edit/BcFront/BcMail/etc/Mail/default/index.php'],
$rs->getHeader('Location')
);
}

/**
Expand Down

0 comments on commit 64602c7

Please sign in to comment.