Skip to content

Commit

Permalink
Add unitTest_MailMessagesTable_setupUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
thangnn committed Dec 6, 2024
1 parent e95647a commit 9baca68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/bc-mail/src/Model/Table/MailMessagesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function createTableName(int $mailContentId): string
* アップロード設定を行う
* @checked
* @noTodo
* @unitTest
*/
public function setupUpload(int $mailContentId)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public function testSetUseTable()
*/
public function testSetupUpload()
{
$this->markTestIncomplete('このテストは、まだ実装されていません。');
$this->MailMessage->setupUpload(1);
$bcUpload = $this->MailMessage->getBehavior('BcUpload');
$this->assertEquals('/var/www/html/webroot/files/mail/limited/1/messages/', $bcUpload->BcFileUploader["MailMessages"]->savePath);
}

/**
Expand Down

0 comments on commit 9baca68

Please sign in to comment.