52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
namespace App\Test\Fixture;
|
|
|
|
use Cake\TestSuite\Fixture\TestFixture;
|
|
|
|
/**
|
|
* Quota2Fixture
|
|
*
|
|
*/
|
|
class Quota2Fixture extends TestFixture
|
|
{
|
|
|
|
/**
|
|
* Table name
|
|
*
|
|
* @var string
|
|
*/
|
|
public $table = 'quota2';
|
|
|
|
/**
|
|
* Fields
|
|
*
|
|
* @var array
|
|
*/
|
|
// @codingStandardsIgnoreStart
|
|
public $fields = [
|
|
'username' => ['type' => 'string', 'length' => 100, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
|
|
'bytes' => ['type' => 'biginteger', 'length' => 20, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'messages' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'_constraints' => [
|
|
'primary' => ['type' => 'primary', 'columns' => ['username'], 'length' => []],
|
|
],
|
|
'_options' => [
|
|
'engine' => 'MyISAM',
|
|
'collation' => 'latin1_swedish_ci'
|
|
],
|
|
];
|
|
// @codingStandardsIgnoreEnd
|
|
|
|
/**
|
|
* Records
|
|
*
|
|
* @var array
|
|
*/
|
|
public $records = [
|
|
[
|
|
'username' => 'f789681e-0987-4247-86f5-6a8ac65fb1cd',
|
|
'bytes' => 1,
|
|
'messages' => 1
|
|
],
|
|
];
|
|
}
|