diff --git a/plugins/bc-widget-area/src/View/Helper/BcWidgetAreaBaserHelper.php b/plugins/bc-widget-area/src/View/Helper/BcWidgetAreaBaserHelper.php index a685324e2a..cce9e087cb 100644 --- a/plugins/bc-widget-area/src/View/Helper/BcWidgetAreaBaserHelper.php +++ b/plugins/bc-widget-area/src/View/Helper/BcWidgetAreaBaserHelper.php @@ -37,6 +37,7 @@ class BcWidgetAreaBaserHelper extends Helper implements BcPluginBaserHelperInter * @return array[] * @checked * @noTodo + * @unitTest */ public function methods(): array { diff --git a/plugins/bc-widget-area/tests/TestCase/View/Helper/BcWidgetAreaBaserHelperTest.php b/plugins/bc-widget-area/tests/TestCase/View/Helper/BcWidgetAreaBaserHelperTest.php new file mode 100644 index 0000000000..1f75af9aa4 --- /dev/null +++ b/plugins/bc-widget-area/tests/TestCase/View/Helper/BcWidgetAreaBaserHelperTest.php @@ -0,0 +1,32 @@ +BcWidgetAreaBaserHelper = new BcWidgetAreaBaserHelper(new View()); + } + + public function tearDown(): void + { + parent::tearDown(); + } + + /** + * test methods + */ + + public function test_methods() + { + $methods = $this->BcWidgetAreaBaserHelper->methods(); + $this->assertEquals(['BcWidgetArea', 'widgetArea'], $methods['widgetArea']); + $this->assertEquals(['BcWidgetArea', 'getWidgetArea'], $methods['getWidgetArea']); + } +} \ No newline at end of file