50 {
51
52 $package = array(
53 'name' => 'components/package',
54 'version' => '1.2.3',
55 'is-root' => true,
56 'extra' => array(
57 'component' => array(
58 'styles' => array(
59 'tests/ComponentInstaller/Test/Resources/test.css',
60 ),
61 ),
62 ),
63 );
64 $packages = array($package);
65 $tests[] = array($packages, array(
66 'package/tests/ComponentInstaller/Test/Resources/test.css',
67 ));
68
69
70 $package = array(
71 'name' => 'components/packagewithtwostyles',
72 'version' => '1.2.3',
73 'is-root' => true,
74 'extra' => array(
75 'component' => array(
76 'styles' => array(
77 'tests/ComponentInstaller/Test/Resources/test.css',
78 'tests/ComponentInstaller/Test/Resources/test2.css',
79 ),
80 ),
81 ),
82 );
83 $packages = array($package);
84 $tests[] = array($packages, array(
85 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test.css',
86 'packagewithtwostyles/tests/ComponentInstaller/Test/Resources/test2.css',
87 ));
88
89
90 $package = array(
91 'name' => 'components/stylethatdoesnotexist',
92 'version' => '1.2.3',
93 'is-root' => true,
94 'extra' => array(
95 'component' => array(
96 'styles' => array(
97 'tests/ComponentInstaller/Test/Resources/test.css',
98 'tests/ComponentInstaller/Test/Resources/test-not-found.css',
99 ),
100 ),
101 ),
102 );
103 $packages = array($package);
104 $tests[] = array($packages, array(
105 'stylethatdoesnotexist/tests/ComponentInstaller/Test/Resources/test.css',
106 ));
107
108
109 $package = array(
110 'name' => 'components/allassets',
111 'version' => '1.2.3',
112 'is-root' => true,
113 'extra' => array(
114 'component' => array(
115 'styles' => array(
116 'tests/ComponentInstaller/Test/Resources/test.css',
117 ),
118 'files' => array(
119 'tests/ComponentInstaller/Test/Resources/img.jpg',
120 'tests/ComponentInstaller/Test/Resources/img2.jpg',
121 ),
122 'scripts' => array(
123 'tests/ComponentInstaller/Test/Resources/test.js'
124 ),
125 ),
126 ),
127 );
128 $packages = array($package);
129 $tests[] = array($packages, array(
130 'allassets/tests/ComponentInstaller/Test/Resources/test.css',
131 'allassets/tests/ComponentInstaller/Test/Resources/img.jpg',
132 'allassets/tests/ComponentInstaller/Test/Resources/img2.jpg',
133 'allassets/tests/ComponentInstaller/Test/Resources/test.js',
134 ));
135
136
137 $package = array(
138 'name' => 'components/differentcomponentname',
139 'version' => '1.2.3',
140 'is-root' => true,
141 'extra' => array(
142 'component' => array(
143 'name' => 'diffname',
144 'files' => array(
145 'tests/ComponentInstaller/Test/Resources/img.jpg',
146 ),
147 ),
148 ),
149 );
150 $packages = array($package);
151 $tests[] = array($packages, array(
152 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
153 ));
154
155
156 $package = array(
157 'name' => 'components/twopackages1',
158 'version' => '1.2.3',
159 'is-root' => true,
160 'extra' => array(
161 'component' => array(
162 'files' => array(
163 'tests/ComponentInstaller/Test/Resources/img.jpg',
164 ),
165 ),
166 ),
167 );
168 $package2 = array(
169 'name' => 'components/twopackages2',
170 'version' => '1.2.3',
171 'is-root' => true,
172 'extra' => array(
173 'component' => array(
174 'name' => 'twopackages2-diff',
175 'files' => array(
176 'tests/ComponentInstaller/Test/Resources/img2.jpg',
177 ),
178 ),
179 ),
180 );
181 $packages = array($package, $package2);
182 $tests[] = array($packages, array(
183 'twopackages1/tests/ComponentInstaller/Test/Resources/img.jpg',
184 'twopackages2-diff/tests/ComponentInstaller/Test/Resources/img2.jpg',
185 ));
186
187
188 $package = array(
189 'name' => 'components/differentcomponentname',
190 'version' => '1.2.3',
191 'is-root' => true,
192 'extra' => array(
193 'component' => array(
194 'name' => 'diffname',
195 'files' => array(
196 'tests/ComponentInstaller/Test/Resources/*.jpg',
197 ),
198 ),
199 ),
200 );
201 $packages = array($package);
202 $tests[] = array($packages, array(
203 'diffname/tests/ComponentInstaller/Test/Resources/img.jpg',
204 'diffname/tests/ComponentInstaller/Test/Resources/img2.jpg',
205 ));
206
207 return $tests;
208 }