Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/friendsofcake/crud-json-api/tests/Fixture/NationalCapitalsFixture.php
<?php
namespace CrudJsonApi\Test\Fixture;

use
Cake\TestSuite\Fixture\TestFixture;

class
NationalCapitalsFixture extends TestFixture
{

    public
$fields = [
       
'id' => ['type' => 'integer'],
       
'name' => ['type' => 'string', 'length' => 100, 'null' => false],
       
'description' => ['type' => 'string', 'length' => 255, 'null' => false],
       
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
    ];

    public
$records = [
        [
'name' => 'Amsterdam', 'description' => 'National capital of the Netherlands'],
        [
'name' => 'Sofia', 'description' => 'National capital of Bulgaria'],
        [
'name' => 'Wellington', 'description' => 'National capital of New Zealand'],
        [
'name' => 'Rome', 'description' => 'National capital of Italy'],
        [
'name' => 'Vatican City', 'description' => 'National capital of the Vatican'],
        [
'name' => 'Washington', 'description' => 'National capital of the US'],
    ];
}