From d3db48f4a515020bd21149291522920e87e0c467 Mon Sep 17 00:00:00 2001 From: HungDV2022 <110375578+HungDV2022@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:03:49 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=8B=E3=83=83=E3=83=88=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E8=AA=BF=E6=95=B4=20(#3378)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Đỗ Văn Hùng --- plugins/bc-blog/tests/Scenario/MultiSiteBlogPostScenario.php | 1 + .../tests/TestCase/Service/Front/BlogFrontServiceTest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/bc-blog/tests/Scenario/MultiSiteBlogPostScenario.php b/plugins/bc-blog/tests/Scenario/MultiSiteBlogPostScenario.php index ba4292e65a..70f794cd8e 100755 --- a/plugins/bc-blog/tests/Scenario/MultiSiteBlogPostScenario.php +++ b/plugins/bc-blog/tests/Scenario/MultiSiteBlogPostScenario.php @@ -116,6 +116,7 @@ protected function createBlogPosts() { BlogPostFactory::make([ 'id' => 1, + 'user_id' => 1, 'blog_content_id' => 6, 'blog_category_id' => 6, 'no' => 3, diff --git a/plugins/bc-blog/tests/TestCase/Service/Front/BlogFrontServiceTest.php b/plugins/bc-blog/tests/TestCase/Service/Front/BlogFrontServiceTest.php index 639086d1b4..c062b48e5d 100755 --- a/plugins/bc-blog/tests/TestCase/Service/Front/BlogFrontServiceTest.php +++ b/plugins/bc-blog/tests/TestCase/Service/Front/BlogFrontServiceTest.php @@ -702,7 +702,7 @@ public function test_getViewVarsForBlogAuthorArchivesWidget() // データを生成 $this->loadFixtureScenario(MultiSiteBlogPostScenario::class); UserFactory::make([ - 'id' => BlogPostFactory::get(1)->user_id, + 'id' => 1, 'name' => 'name_test', 'real_name_1' => 'real_name_1_test', 'real_name_2' => 'real_name_2_test',