From a2b33cbf25ff99cbff6f88659616bfbecdec3be9 Mon Sep 17 00:00:00 2001 From: thangnn Date: Tue, 27 Feb 2024 03:37:02 +0700 Subject: [PATCH] fixed by comment discussion_r1502262992: --- plugins/bc-blog/tests/TestCase/View/Helper/BlogHelperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bc-blog/tests/TestCase/View/Helper/BlogHelperTest.php b/plugins/bc-blog/tests/TestCase/View/Helper/BlogHelperTest.php index af3e558b5d..908e949491 100755 --- a/plugins/bc-blog/tests/TestCase/View/Helper/BlogHelperTest.php +++ b/plugins/bc-blog/tests/TestCase/View/Helper/BlogHelperTest.php @@ -1775,7 +1775,7 @@ public function testGetCurrentBlogTag($url, $type, $isTag, $expects) 'created' => '2015-08-10 18:57:47', ])->persist(); - SiteFactory::make(['id' => 1, 'status' => true])->persist(); + SiteFactory::make(['id' => 1])->persist(); $this->Blog->getView()->setRequest($this->getRequest($url)->withAttribute('currentSite', SiteFactory::get(1))); $this->Blog->getView()->set('blogArchiveType', $type); //check blog isTag