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',