From 2894f8f1d24fd0f2bcf7b4271dfe175df27ed353 Mon Sep 17 00:00:00 2001 From: HungDV2022 Date: Fri, 29 Nov 2024 12:49:37 +0900 Subject: [PATCH] =?UTF-8?q?BcThemeConfigHelper::mainImage()=20=E3=83=A6?= =?UTF-8?q?=E3=83=8B=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 --- .../src/View/Helper/BcThemeConfigHelper.php | 2 ++ .../tests/TestCase/View/Helper/BcThemeConfigHelperTest.php | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/bc-theme-config/src/View/Helper/BcThemeConfigHelper.php b/plugins/bc-theme-config/src/View/Helper/BcThemeConfigHelper.php index 11c2a4eadb..48ae996990 100644 --- a/plugins/bc-theme-config/src/View/Helper/BcThemeConfigHelper.php +++ b/plugins/bc-theme-config/src/View/Helper/BcThemeConfigHelper.php @@ -95,6 +95,7 @@ public function mainImage($options = []) * @return void * @checked * @noTodo + * @unitTest */ public function logo($options = []) { @@ -121,6 +122,7 @@ public function logo($options = []) * @return string $tag テーマ画像のHTMLタグ * @checked * @noTodo + * @unitTest */ public function getThemeImage($name, $options = []) { diff --git a/plugins/bc-theme-config/tests/TestCase/View/Helper/BcThemeConfigHelperTest.php b/plugins/bc-theme-config/tests/TestCase/View/Helper/BcThemeConfigHelperTest.php index 54d58adc98..8d5e916867 100644 --- a/plugins/bc-theme-config/tests/TestCase/View/Helper/BcThemeConfigHelperTest.php +++ b/plugins/bc-theme-config/tests/TestCase/View/Helper/BcThemeConfigHelperTest.php @@ -54,9 +54,10 @@ public function tearDown(): void */ public function testLogo() { - $this->markTestIncomplete('このテストは、まだ実装されていません。'); - $this->expectOutputRegex('/baserCMS/'); - $this->BcBaser->logo(); + ob_start(); + $this->BcThemeConfigHelper->logo(); + $result = ob_get_clean(); + $this->assertEquals('', $result); } /**