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

69 lines
2.8 KiB
PHP

<?php
namespace App\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* MailboxFixture
*
*/
class MailboxFixture extends TestFixture
{
/**
* Table name
*
* @var string
*/
public $table = 'mailbox';
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'username' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'password' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'name' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'maildir' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'quota' => ['type' => 'biginteger', 'length' => 20, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'local_part' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'domain' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => 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],
'_indexes' => [
'domain' => ['type' => 'index', 'columns' => ['domain'], 'length' => []],
],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['username'], 'length' => []],
],
'_options' => [
'engine' => 'MyISAM',
'collation' => 'latin1_swedish_ci'
],
];
// @codingStandardsIgnoreEnd
/**
* Records
*
* @var array
*/
public $records = [
[
'username' => '126510a6-6e6f-445c-a762-d6bd538bc36e',
'password' => 'Lorem ipsum dolor sit amet',
'name' => 'Lorem ipsum dolor sit amet',
'maildir' => 'Lorem ipsum dolor sit amet',
'quota' => 1,
'local_part' => 'Lorem ipsum dolor sit amet',
'domain' => 'Lorem ipsum dolor sit amet',
'created' => '2016-05-22 16:06:26',
'modified' => '2016-05-22 16:06:26',
'active' => 1
],
];
}