From 2ae635b1d781072c5f18a21632fff3724f9c003c Mon Sep 17 00:00:00 2001 From: TPGF00003 Date: Tue, 12 Nov 2024 10:55:03 +0900 Subject: [PATCH] =?UTF-8?q?BcTestCase::classMethod()=20=E3=83=A6=E3=83=8B?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/baser-core/src/TestSuite/BcTestCase.php | 1 + .../tests/TestCase/TestSuite/BcTestCaseTest.php | 11 +++++++++++ 2 files changed, 12 insertions(+) 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 */