Skip to content

Commit

Permalink
ユニットテスト調整
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Nov 26, 2024
1 parent 05a0263 commit 997c869
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions plugins/bc-blog/tests/TestCase/Service/BlogPostsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,23 @@ public function testGetTitlesById()
*/
public function testBatch()
{
$this->markTestIncomplete('このテストは未確認です');
// データを生成
$this->loadFixtureScenario(BlogContentScenario::class, 5, 1, null, 'news1', '/news/');
BlogContentFactory::make([
'id' => 5,
'description' => 'baserCMS inc. [デモ] の最新の情報をお届けします。',
'template' => 'default',
'list_count' => '10',
'list_direction' => 'DESC',
'feed_count' => '10',
'tag_use' => '1',
'comment_use' => '1',
'comment_approve' => '0',
'widget_area' => '2',
'eye_catch_size' => 'YTo0OntzOjExOiJ0aHVtYl93aWR0aCI7czozOiIzMDAiO3M6MTI6InRodW1iX2hlaWdodCI7czozOiIzMDAiO3M6MTg6Im1vYmlsZV90aHVtYl93aWR0aCI7czozOiIxMDAiO3M6MTk6Im1vYmlsZV90aHVtYl9oZWlnaHQiO3M6MzoiMTAwIjt9',
'use_content' => '1',
'created' => '2015-08-10 18:57:47',
'modified' => NULL,
])->persist();
BlogPostFactory::make(['id' => '1', 'blog_content_id' => '5', 'title' => 'test blog post batch'])->persist();
BlogPostFactory::make(['id' => '2', 'blog_content_id' => '5', 'title' => 'test blog post batch'])->persist();
BlogPostFactory::make(['id' => '3', 'blog_content_id' => '5', 'title' => 'test blog post batch'])->persist();
Expand Down

0 comments on commit 997c869

Please sign in to comment.