Skip to content

Commit

Permalink
調整
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Dec 5, 2023
1 parent 52f0274 commit 8728a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/bc-blog/tests/TestCase/Model/BlogPostsTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function test_validationDefault_testNotAllow()
BlogPostFactory::make(['name' => 'test'])->persist();
$errors = $validator->validate([
'name' => '1', //スラッグ
'contents' => '<?php echo $test; ?>', //概要欄
'content' => '<?php echo $test; ?>', //概要欄
'detail' => '<?php echo $test; ?>', //本稿欄
'detail_draft' => '<?php echo $test; ?>', //草稿欄
'publish_begin' => '2022-02-29', //公開開始日
Expand All @@ -150,7 +150,7 @@ public function test_validationDefault_testNotAllow()
//スラッグ
$this->assertEquals('数値だけのスラッグを登録することはできません。', current($errors['name']));
//概要欄
$this->assertEquals('概要欄でスクリプトの入力は許可されていません。', current($errors['contents']));
$this->assertEquals('概要欄でスクリプトの入力は許可されていません。', current($errors['content']));
//本稿欄
$this->assertEquals('本稿欄でスクリプトの入力は許可されていません。', current($errors['detail']));
//草稿欄
Expand Down

0 comments on commit 8728a26

Please sign in to comment.