Skip to content

Commit

Permalink
MailContentsController::redirectEditForm() ユニットテスト
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Dec 17, 2024
1 parent d0dba2d commit 99b885b
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 @@ -135,6 +135,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 @@ -106,7 +106,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 99b885b

Please sign in to comment.