diff --git a/plugins/bc-blog/tests/TestCase/Service/BlogPostsServiceTest.php b/plugins/bc-blog/tests/TestCase/Service/BlogPostsServiceTest.php index 30435f3987..6a159831e7 100755 --- a/plugins/bc-blog/tests/TestCase/Service/BlogPostsServiceTest.php +++ b/plugins/bc-blog/tests/TestCase/Service/BlogPostsServiceTest.php @@ -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();