Skip to content

Commit

Permalink
unitTest_BlogCommentsService_getBlogContent format code and add some …
Browse files Browse the repository at this point in the history
…comment
  • Loading branch information
thangnn committed Feb 16, 2024
1 parent efc1525 commit 1d42469
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ public function testBatch()
* getBlogContent
* @return void
*/
public function testGetBlogContent(){
public function testGetBlogContent()
{
//created blogPost
$this->loadFixtureScenario(
BlogContentScenario::class,
1, // id
Expand All @@ -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']);
}



}

0 comments on commit 1d42469

Please sign in to comment.