Skip to content

Commit

Permalink
add unitTest_Table_MailFields_halfTextMailField (#3368)
Browse files Browse the repository at this point in the history
Co-authored-by: thangnn <[email protected]>
  • Loading branch information
thangnnmd and thangnn authored Apr 23, 2024
1 parent d7fc85c commit 5420036
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/bc-mail/src/Model/Table/MailFieldsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public function duplicateMailField(string $value, array $context)
* @return boolean
* @checked
* @noTodo
* @unitTest
*/
public function halfTextMailField(string $value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ public function testDuplicateMailField()
*/
public function testHalfTextMailField()
{
$this->markTestIncomplete('このテストは、まだ実装されていません。');
//case true
$string = 'abc123_';
$result = $this->MailFieldsTable->halfTextMailField($string);
$this->assertTrue($result);

//case false
$string = 'abcABC123_';
$result = $this->MailFieldsTable->halfTextMailField($string);
$this->assertFalse($result);
}

/**
Expand Down

0 comments on commit 5420036

Please sign in to comment.