forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSocialAccountsFixture.php
More file actions
141 lines (136 loc) · 6.56 KB
/
Copy pathSocialAccountsFixture.php
File metadata and controls
141 lines (136 loc) · 6.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
/**
* Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace CakeDC\Users\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* AccountsFixture
*
*/
class SocialAccountsFixture extends TestFixture
{
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'user_id' => ['type' => 'uuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'provider' => ['type' => 'string', 'length' => 255, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
'username' => ['type' => 'string', 'length' => 255, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'reference' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'avatar' => ['type' => 'string', 'length' => 255, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'description' => ['type' => 'text', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
'token' => ['type' => 'string', 'length' => 500, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'token_secret' => ['type' => 'string', 'length' => 500, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'token_expires' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
'active' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => true, 'comment' => '', 'precision' => null],
'data' => ['type' => 'text', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'created' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'modified' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
],
'_options' => [
'engine' => 'InnoDB',
'collation' => 'utf8_general_ci'
],
];
// @codingStandardsIgnoreEnd
/**
* Records
*
* @var array
*/
public $records = [
[
'id' => '00000000-0000-0000-0000-000000000001',
'user_id' => '00000000-0000-0000-0000-000000000001',
'provider' => 'Facebook',
'username' => 'user-1-fb',
'reference' => 'reference-1-1234',
'avatar' => 'Lorem ipsum dolor sit amet',
'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
'token' => 'token-1234',
'token_secret' => 'Lorem ipsum dolor sit amet',
'token_expires' => '2015-05-22 21:52:44',
'active' => false,
'data' => '',
'created' => '2015-05-22 21:52:44',
'modified' => '2015-05-22 21:52:44'
],
[
'id' => '00000000-0000-0000-0000-000000000002',
'user_id' => '00000000-0000-0000-0000-000000000001',
'provider' => 'Twitter',
'username' => 'user-1-tw',
'reference' => 'reference-1-1234',
'avatar' => 'Lorem ipsum dolor sit amet',
'description' => '',
'token' => 'token-1234',
'token_secret' => 'Lorem ipsum dolor sit amet',
'token_expires' => '2015-05-22 21:52:44',
'active' => true,
'data' => '',
'created' => '2015-05-22 21:52:44',
'modified' => '2015-05-22 21:52:44'
],
[
'id' => '00000000-0000-0000-0000-000000000003',
'user_id' => '00000000-0000-0000-0000-000000000002',
'provider' => 'Facebook',
'username' => 'user-2-fb',
'reference' => 'reference-2-1',
'avatar' => 'Lorem ipsum dolor sit amet',
'description' => '',
'token' => 'token-reference-2-1',
'token_secret' => 'Lorem ipsum dolor sit amet',
'token_expires' => '2015-05-22 21:52:44',
'active' => true,
'data' => '',
'created' => '2015-05-22 21:52:44',
'modified' => '2015-05-22 21:52:44'
],
[
'id' => '00000000-0000-0000-0000-000000000004',
'user_id' => '00000000-0000-0000-0000-000000000003',
'provider' => 'Twitter',
'username' => 'user-2-tw',
'reference' => 'reference-2-2',
'avatar' => 'Lorem ipsum dolor sit amet',
'description' => '',
'token' => 'token-reference-2-2',
'token_secret' => 'Lorem ipsum dolor sit amet',
'token_expires' => '2015-05-22 21:52:44',
'active' => false,
'data' => '',
'created' => '2015-05-22 21:52:44',
'modified' => '2015-05-22 21:52:44'
],
[
'id' => '00000000-0000-0000-0000-000000000005',
'user_id' => '00000000-0000-0000-0000-000000000004',
'provider' => 'Twitter',
'username' => 'user-2-tw',
'reference' => 'reference-2-2',
'avatar' => 'Lorem ipsum dolor sit amet',
'description' => '',
'token' => 'token-reference-2-2',
'token_secret' => 'Lorem ipsum dolor sit amet',
'token_expires' => '2015-05-22 21:52:44',
'active' => false,
'data' => '',
'created' => '2015-05-22 21:52:44',
'modified' => '2015-05-22 21:52:44'
],
];
}