mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
namespace App\Test\Fixture;
|
|
|
|
use Cake\TestSuite\Fixture\TestFixture;
|
|
|
|
/**
|
|
* StateBalancesFixture
|
|
*/
|
|
class StateBalancesFixture extends TestFixture
|
|
{
|
|
/**
|
|
* Fields
|
|
*
|
|
* @var array
|
|
*/
|
|
// @codingStandardsIgnoreStart
|
|
public $fields = [
|
|
'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => true],
|
|
'state_user_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'modified' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'amount' => ['type' => 'biginteger', 'length' => 20, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'_constraints' => [
|
|
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
|
|
],
|
|
'_options' => [
|
|
'engine' => 'InnoDB',
|
|
'collation' => 'utf8_bin'
|
|
],
|
|
];
|
|
// @codingStandardsIgnoreEnd
|
|
/**
|
|
* Init method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function init()
|
|
{
|
|
$this->records = [
|
|
[
|
|
'id' => 1,
|
|
'state_user_id' => 1,
|
|
'modified' => '2019-11-05 18:02:28',
|
|
'amount' => 1200
|
|
],
|
|
[
|
|
'id' => 10,
|
|
'state_user_id' => 4,
|
|
'modified' => '2019-11-11 14:58:54',
|
|
'amount' => 1200000
|
|
]
|
|
];
|
|
parent::init();
|
|
}
|
|
}
|