| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace Tools\Test\Fixture;
- use Cake\TestSuite\Fixture\TestFixture;
- class SluggedArticlesFixture extends TestFixture {
- /**
- * fields property
- *
- * @var array
- */
- public array $fields = [
- 'id' => ['type' => 'integer'],
- 'title' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => ''],
- 'slug' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => ''],
- 'long_title' => ['type' => 'string', 'null' => false, 'default' => ''],
- 'long_slug' => ['type' => 'string', 'null' => false, 'default' => ''],
- 'section' => ['type' => 'integer', 'null' => true],
- '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
- ];
- /**
- * records property
- *
- * @var array
- */
- public array $records = [
- [
- 'title' => 'Foo',
- 'slug' => 'foo',
- 'long_title' => 'Foo Bar',
- 'long_slug' => 'foo-bar',
- 'section' => null,
- ],
- ];
- }
|