webadmin/tests/Fixture/DomainFixture.php
2017-06-22 15:48:15 +03:00

68 lines
2.9 KiB
PHP

<?php
namespace App\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* DomainFixture
*
*/
class DomainFixture extends TestFixture
{
/**
* Table name
*
* @var string
*/
public $table = 'domain';
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'domain' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'description' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'aliases' => ['type' => 'integer', 'length' => 10, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'mailboxes' => ['type' => 'integer', 'length' => 10, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'maxquota' => ['type' => 'biginteger', 'length' => 20, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'quota' => ['type' => 'biginteger', 'length' => 20, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'transport' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'backupmx' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null],
'created' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => '0000-00-00 00:00:00', 'comment' => '', 'precision' => null],
'modified' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => '0000-00-00 00:00:00', 'comment' => '', 'precision' => null],
'active' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => '1', 'comment' => '', 'precision' => null],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['domain'], 'length' => []],
],
'_options' => [
'engine' => 'MyISAM',
'collation' => 'latin1_swedish_ci'
],
];
// @codingStandardsIgnoreEnd
/**
* Records
*
* @var array
*/
public $records = [
[
'domain' => '42a3b76d-2402-462b-921f-f7147bf9b118',
'description' => 'Lorem ipsum dolor sit amet',
'aliases' => 1,
'mailboxes' => 1,
'maxquota' => 1,
'quota' => 1,
'transport' => 'Lorem ipsum dolor sit amet',
'backupmx' => 1,
'created' => '2016-05-22 16:32:06',
'modified' => '2016-05-22 16:32:06',
'active' => 1
],
];
}