| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Tools\Test\Fixture;
- use Cake\TestSuite\Fixture\TestFixture;
- /**
- * Short description for class.
- */
- class ArticlesFixture extends TestFixture {
- /**
- * fields property
- *
- * @var array
- */
- public array $fields = [
- 'id' => ['type' => 'integer'],
- 'author_id' => ['type' => 'integer', 'null' => true],
- 'title' => ['type' => 'string', 'null' => true],
- 'body' => 'text',
- 'published' => ['type' => 'string', 'length' => 1, 'default' => 'N'],
- '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
- ];
- /**
- * records property
- *
- * @var array
- */
- public array $records = [
- ['author_id' => 1, 'title' => 'First Article', 'body' => 'First Article Body', 'published' => 'Y'],
- ['author_id' => 3, 'title' => 'Second Article', 'body' => 'Second Article Body', 'published' => 'Y'],
- ['author_id' => 1, 'title' => 'Third Article', 'body' => 'Third Article Body', 'published' => 'Y'],
- ];
- }
|