| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Tools\Test\Fixture;
- use Cake\TestSuite\Fixture\TestFixture;
- /**
- * For ResetBehavior
- */
- class ResetCommentsFixture extends TestFixture {
- /**
- * fields property
- *
- * @var array
- */
- public array $fields = [
- 'id' => ['type' => 'integer'],
- 'article_id' => ['type' => 'integer', 'null' => false],
- 'user_id' => ['type' => 'integer', 'null' => false],
- 'comment' => 'text',
- 'published' => ['type' => 'string', 'length' => 1, 'default' => 'N'],
- 'created' => 'datetime',
- 'updated' => 'datetime',
- '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
- ];
- /**
- * records property
- *
- * @var array
- */
- public array $records = [
- ['article_id' => 1, 'user_id' => 2, 'comment' => 'First Comment for First Article', 'published' => 'Y', 'created' => '2007-03-18 10:45:23', 'updated' => '2007-03-18 10:47:31'],
- ['article_id' => 1, 'user_id' => 4, 'comment' => 'Second Comment for First Article', 'published' => 'Y', 'created' => '2007-03-18 10:47:23', 'updated' => '2007-03-18 10:49:31'],
- ['article_id' => 1, 'user_id' => 1, 'comment' => 'Third Comment for First Article', 'published' => 'Y', 'created' => '2007-03-18 10:49:23', 'updated' => '2007-03-18 10:51:31'],
- ['article_id' => 1, 'user_id' => 1, 'comment' => 'Fourth Comment for First Article', 'published' => 'N', 'created' => '2007-03-18 10:51:23', 'updated' => '2007-03-18 10:53:31'],
- ['article_id' => 2, 'user_id' => 1, 'comment' => 'First Comment for Second Article', 'published' => 'Y', 'created' => '2007-03-18 10:53:23', 'updated' => '2007-03-18 10:55:31'],
- ['article_id' => 2, 'user_id' => 2, 'comment' => 'Second Comment for Second Article', 'published' => 'Y', 'created' => '2007-03-18 10:55:23', 'updated' => '2007-03-18 10:57:31'],
- ];
- }
|