@@ -11,48 +11,22 @@ class EmailQueueFixture extends TestFixture
1111{
1212 public $ table = 'email_queue ' ;
1313
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-
4114 /**
4215 * Records.
4316 *
4417 * @var array
4518 */
4619 public $ records = [
4720 [
48- 'id ' => 'email- 1 ' ,
21+ 'id ' => '1 ' ,
4922 'email ' => 'example@example.com ' ,
5023 'from_name ' => null ,
5124 'from_email ' => null ,
5225 'subject ' => 'Free dealz ' ,
5326 'config ' => 'default ' ,
5427 'template ' => 'default ' ,
5528 'layout ' => 'default ' ,
29+ 'theme ' => 'default ' ,
5630 'format ' => 'both ' ,
5731 'template_vars ' => '{"a":1,"b":2} ' ,
5832 'headers ' => '{"foo":"bar"} ' ,
@@ -64,14 +38,15 @@ class EmailQueueFixture extends TestFixture
6438 'modified ' => '2011-06-20 13:50:48 ' ,
6539 ],
6640 [
67- 'id ' => ' email-2 ' ,
41+ 'id ' => 2 ,
6842 'email ' => 'example2@example.com ' ,
6943 'from_name ' => null ,
7044 'from_email ' => null ,
7145 'subject ' => 'Free dealz ' ,
7246 'config ' => 'default ' ,
7347 'template ' => 'default ' ,
7448 'layout ' => 'default ' ,
49+ 'theme ' => 'default ' ,
7550 'format ' => 'both ' ,
7651 'template_vars ' => '{"a":1,"b":2} ' ,
7752 'headers ' => '{"foo":"bar"} ' ,
@@ -83,14 +58,15 @@ class EmailQueueFixture extends TestFixture
8358 'modified ' => '2011-06-20 13:50:48 ' ,
8459 ],
8560 [
86- 'id ' => ' email-3 ' ,
61+ 'id ' => 3 ,
8762 'email ' => 'example3@example.com ' ,
8863 'from_name ' => null ,
8964 'from_email ' => null ,
9065 'subject ' => 'Free dealz ' ,
9166 'config ' => 'default ' ,
9267 'template ' => 'default ' ,
9368 'layout ' => 'default ' ,
69+ 'theme ' => 'default ' ,
9470 'format ' => 'both ' ,
9571 'template_vars ' => '{"a":1,"b":2} ' ,
9672 'headers ' => '{"foo":"bar"} ' ,
@@ -102,14 +78,15 @@ class EmailQueueFixture extends TestFixture
10278 'modified ' => '2011-06-20 13:50:48 ' ,
10379 ],
10480 [
105- 'id ' => ' email-4 ' ,
81+ 'id ' => 4 ,
10682 'email ' => 'example@example.com ' ,
10783 'from_name ' => null ,
10884 'from_email ' => null ,
10985 'subject ' => 'Free dealz ' ,
11086 'config ' => 'default ' ,
11187 'template ' => 'default ' ,
11288 'layout ' => 'default ' ,
89+ 'theme ' => 'default ' ,
11390 'format ' => 'both ' ,
11491 'template_vars ' => '{"a":1,"b":2} ' ,
11592 'headers ' => '{"foo":"bar"} ' ,
@@ -121,14 +98,15 @@ class EmailQueueFixture extends TestFixture
12198 'modified ' => '2011-06-20 13:50:48 ' ,
12299 ],
123100 [
124- 'id ' => ' email-5 ' ,
101+ 'id ' => 5 ,
125102 'email ' => 'example@example.com ' ,
126103 'from_name ' => null ,
127104 'from_email ' => null ,
128105 'subject ' => 'Free dealz ' ,
129106 'config ' => 'default ' ,
130107 'template ' => 'default ' ,
131108 'layout ' => 'default ' ,
109+ 'theme ' => 'default ' ,
132110 'format ' => 'both ' ,
133111 'template_vars ' => '{"a":1,"b":2} ' ,
134112 'headers ' => '{"foo":"bar"} ' ,
@@ -140,14 +118,15 @@ class EmailQueueFixture extends TestFixture
140118 'modified ' => '2011-06-20 13:50:48 ' ,
141119 ],
142120 [
143- 'id ' => ' email-6 ' ,
121+ 'id ' => 6 ,
144122 'email ' => 'example@example.com ' ,
145123 'from_name ' => null ,
146124 'from_email ' => null ,
147125 'subject ' => 'Free dealz ' ,
148126 'config ' => 'default ' ,
149127 'template ' => 'default ' ,
150128 'layout ' => 'default ' ,
129+ 'theme ' => 'default ' ,
151130 'format ' => 'both ' ,
152131 'template_vars ' => '{"a":1,"b":2} ' ,
153132 'headers ' => '{"foo":"bar"} ' ,
0 commit comments