@@ -11,48 +11,22 @@ class EmailQueueFixture extends TestFixture
11
11
{
12
12
public $ table = 'email_queue ' ;
13
13
14
- /**
15
- * Fields.
16
- *
17
- * @var array
18
- */
19
- public $ fields = [
20
- 'id ' => ['type ' => 'uuid ' , 'null ' => false ],
21
- 'email ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 100 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
22
- 'from_name ' => ['type ' => 'string ' , 'null ' => true , 'default ' => null , 'length ' => 100 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
23
- 'from_email ' => ['type ' => 'string ' , 'null ' => true , 'default ' => null , 'length ' => 100 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
24
- 'subject ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 255 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
25
- 'config ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 30 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
26
- 'template ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 50 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
27
- 'layout ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 50 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
28
- 'format ' => ['type ' => 'string ' , 'null ' => false , 'default ' => null , 'length ' => 5 , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
29
- 'template_vars ' => ['type ' => 'text ' , 'null ' => false , 'default ' => null , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
30
- 'headers ' => ['type ' => 'text ' , 'null ' => true , 'default ' => null , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
31
- 'error ' => ['type ' => 'text ' , 'null ' => true , 'default ' => null , 'collate ' => 'utf8_general_ci ' , 'charset ' => 'utf8 ' ],
32
- 'sent ' => ['type ' => 'boolean ' , 'null ' => false , 'default ' => 0 ],
33
- 'locked ' => ['type ' => 'boolean ' , 'null ' => false , 'default ' => 0 ],
34
- 'send_tries ' => ['type ' => 'integer ' , 'null ' => false , 'default ' => 0 , 'length ' => 2 ],
35
- 'send_at ' => ['type ' => 'datetime ' , 'null ' => true , 'default ' => null ],
36
- 'created ' => ['type ' => 'datetime ' , 'null ' => false , 'default ' => null ],
37
- 'modified ' => ['type ' => 'datetime ' , 'null ' => false , 'default ' => null ],
38
- '_constraints ' => ['primary ' => ['type ' => 'primary ' , 'columns ' => ['id ' ]]],
39
- ];
40
-
41
14
/**
42
15
* Records.
43
16
*
44
17
* @var array
45
18
*/
46
19
public $ records = [
47
20
[
48
- 'id ' => 'email- 1 ' ,
21
+ 'id ' => '1 ' ,
49
22
50
23
'from_name ' => null ,
51
24
'from_email ' => null ,
52
25
'subject ' => 'Free dealz ' ,
53
26
'config ' => 'default ' ,
54
27
'template ' => 'default ' ,
55
28
'layout ' => 'default ' ,
29
+ 'theme ' => 'default ' ,
56
30
'format ' => 'both ' ,
57
31
'template_vars ' => '{"a":1,"b":2} ' ,
58
32
'headers ' => '{"foo":"bar"} ' ,
@@ -64,14 +38,15 @@ class EmailQueueFixture extends TestFixture
64
38
'modified ' => '2011-06-20 13:50:48 ' ,
65
39
],
66
40
[
67
- 'id ' => ' email-2 ' ,
41
+ 'id ' => 2 ,
68
42
69
43
'from_name ' => null ,
70
44
'from_email ' => null ,
71
45
'subject ' => 'Free dealz ' ,
72
46
'config ' => 'default ' ,
73
47
'template ' => 'default ' ,
74
48
'layout ' => 'default ' ,
49
+ 'theme ' => 'default ' ,
75
50
'format ' => 'both ' ,
76
51
'template_vars ' => '{"a":1,"b":2} ' ,
77
52
'headers ' => '{"foo":"bar"} ' ,
@@ -83,14 +58,15 @@ class EmailQueueFixture extends TestFixture
83
58
'modified ' => '2011-06-20 13:50:48 ' ,
84
59
],
85
60
[
86
- 'id ' => ' email-3 ' ,
61
+ 'id ' => 3 ,
87
62
88
63
'from_name ' => null ,
89
64
'from_email ' => null ,
90
65
'subject ' => 'Free dealz ' ,
91
66
'config ' => 'default ' ,
92
67
'template ' => 'default ' ,
93
68
'layout ' => 'default ' ,
69
+ 'theme ' => 'default ' ,
94
70
'format ' => 'both ' ,
95
71
'template_vars ' => '{"a":1,"b":2} ' ,
96
72
'headers ' => '{"foo":"bar"} ' ,
@@ -102,14 +78,15 @@ class EmailQueueFixture extends TestFixture
102
78
'modified ' => '2011-06-20 13:50:48 ' ,
103
79
],
104
80
[
105
- 'id ' => ' email-4 ' ,
81
+ 'id ' => 4 ,
106
82
107
83
'from_name ' => null ,
108
84
'from_email ' => null ,
109
85
'subject ' => 'Free dealz ' ,
110
86
'config ' => 'default ' ,
111
87
'template ' => 'default ' ,
112
88
'layout ' => 'default ' ,
89
+ 'theme ' => 'default ' ,
113
90
'format ' => 'both ' ,
114
91
'template_vars ' => '{"a":1,"b":2} ' ,
115
92
'headers ' => '{"foo":"bar"} ' ,
@@ -121,14 +98,15 @@ class EmailQueueFixture extends TestFixture
121
98
'modified ' => '2011-06-20 13:50:48 ' ,
122
99
],
123
100
[
124
- 'id ' => ' email-5 ' ,
101
+ 'id ' => 5 ,
125
102
126
103
'from_name ' => null ,
127
104
'from_email ' => null ,
128
105
'subject ' => 'Free dealz ' ,
129
106
'config ' => 'default ' ,
130
107
'template ' => 'default ' ,
131
108
'layout ' => 'default ' ,
109
+ 'theme ' => 'default ' ,
132
110
'format ' => 'both ' ,
133
111
'template_vars ' => '{"a":1,"b":2} ' ,
134
112
'headers ' => '{"foo":"bar"} ' ,
@@ -140,14 +118,15 @@ class EmailQueueFixture extends TestFixture
140
118
'modified ' => '2011-06-20 13:50:48 ' ,
141
119
],
142
120
[
143
- 'id ' => ' email-6 ' ,
121
+ 'id ' => 6 ,
144
122
145
123
'from_name ' => null ,
146
124
'from_email ' => null ,
147
125
'subject ' => 'Free dealz ' ,
148
126
'config ' => 'default ' ,
149
127
'template ' => 'default ' ,
150
128
'layout ' => 'default ' ,
129
+ 'theme ' => 'default ' ,
151
130
'format ' => 'both ' ,
152
131
'template_vars ' => '{"a":1,"b":2} ' ,
153
132
'headers ' => '{"foo":"bar"} ' ,
0 commit comments