Skip to content

Commit

Permalink
BcTestCase::classMethod() ユニットテスト
Browse files Browse the repository at this point in the history
  • Loading branch information
TPGF00003 committed Nov 12, 2024
1 parent f7fab89 commit 2ae635b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/baser-core/src/TestSuite/BcTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function setUp(): void
* クラスメソッド名を取得する
* @checked
* @noTodo
* @unitTest
*/
public function classMethod()
{
Expand Down
11 changes: 11 additions & 0 deletions plugins/baser-core/tests/TestCase/TestSuite/BcTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,17 @@ public function testSetUploadFileToRequest()
unlink($filePath);
}

/**
* test classMethod
*/
public function testClassMethod()
{
ob_start();
$this->classMethod();
$output = ob_get_clean();
$this->assertEquals("", $output);
}

/**
* test dropTable
*/
Expand Down

0 comments on commit 2ae635b

Please sign in to comment.