diff --git a/plugins/bc-blog/tests/TestCase/Service/BlogCommentsServiceTest.php b/plugins/bc-blog/tests/TestCase/Service/BlogCommentsServiceTest.php index 13f4612d3a..033e027965 100755 --- a/plugins/bc-blog/tests/TestCase/Service/BlogCommentsServiceTest.php +++ b/plugins/bc-blog/tests/TestCase/Service/BlogCommentsServiceTest.php @@ -221,7 +221,9 @@ public function testBatch() * getBlogContent * @return void */ - public function testGetBlogContent(){ + public function testGetBlogContent() + { + //created blogPost $this->loadFixtureScenario( BlogContentScenario::class, 1, // id @@ -231,11 +233,14 @@ public function testGetBlogContent(){ '/news/' // url ); BlogPostFactory::make(['id' => 1, 'blog_content_id' => 1])->persist(); + + //check getBlogContent $blogContent = $this->BlogCommentsService->getBlogContent(1); + + //check description $this->assertEquals('ディスクリプション', $blogContent['description']); + + //check template $this->assertEquals('homePage', $blogContent['template']); } - - - }