mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
git-subtree-dir: community_server git-subtree-mainline: ff11f6efe35bba180260fe84077bcd94298895c1 git-subtree-split: b6544b9e69fb85d4da100934675323c3e8c8ef67
65 lines
3.3 KiB
PHP
65 lines
3.3 KiB
PHP
<?php
|
|
namespace App\Test\Fixture;
|
|
|
|
use Cake\TestSuite\Fixture\TestFixture;
|
|
|
|
/**
|
|
* ElopageBuysFixture
|
|
*/
|
|
class ElopageBuysFixture extends TestFixture
|
|
{
|
|
/**
|
|
* Fields
|
|
*
|
|
* @var array
|
|
*/
|
|
// @codingStandardsIgnoreStart
|
|
public $fields = [
|
|
'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
|
|
'elopage_user_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'affiliate_program_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'publisher_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'order_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'product_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'product_price' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
|
|
'payer_email' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_bin', 'comment' => '', 'precision' => null, 'fixed' => null],
|
|
'publisher_email' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_bin', 'comment' => '', 'precision' => null, 'fixed' => null],
|
|
'payed' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'success_date' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
|
|
'event' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8mb4_general_ci', 'comment' => '', 'precision' => null, 'fixed' => 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,
|
|
'elopage_user_id' => 1,
|
|
'affiliate_program_id' => 1,
|
|
'publisher_id' => 1,
|
|
'order_id' => 1,
|
|
'product_id' => 1,
|
|
'product_price' => 1,
|
|
'payer_email' => 'Lorem ipsum dolor sit amet',
|
|
'publisher_email' => 'Lorem ipsum dolor sit amet',
|
|
'payed' => 1,
|
|
'success_date' => '2020-02-13 09:49:46',
|
|
'event' => 'Lorem ipsum dolor sit amet',
|
|
],
|
|
];
|
|
parent::init();
|
|
}
|
|
}
|