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