diff --git a/plugins/baser-core/src/TestSuite/BcTestCase.php b/plugins/baser-core/src/TestSuite/BcTestCase.php index 161930b612..a9b8abb10d 100644 --- a/plugins/baser-core/src/TestSuite/BcTestCase.php +++ b/plugins/baser-core/src/TestSuite/BcTestCase.php @@ -160,6 +160,7 @@ public function setUp(): void * クラスメソッド名を取得する * @checked * @noTodo + * @unitTest */ public function classMethod() { diff --git a/plugins/baser-core/tests/TestCase/TestSuite/BcTestCaseTest.php b/plugins/baser-core/tests/TestCase/TestSuite/BcTestCaseTest.php index 0e8f2c4f9e..5d9982ab67 100644 --- a/plugins/baser-core/tests/TestCase/TestSuite/BcTestCaseTest.php +++ b/plugins/baser-core/tests/TestCase/TestSuite/BcTestCaseTest.php @@ -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 */