|
@@ -4,7 +4,7 @@ namespace Muzich\CoreBundle\Tests\Searcher;
|
4
|
4
|
|
5
|
5
|
use Muzich\CoreBundle\lib\UnitTest;
|
6
|
6
|
use Muzich\CoreBundle\Entity\Element;
|
7
|
|
-use Muzich\CoreBundle\ElementFactory\ElementManager;
|
|
7
|
+use Muzich\CoreBundle\Managers\ElementManager;
|
8
|
8
|
use Doctrine\Common\Collections\ArrayCollection;
|
9
|
9
|
|
10
|
10
|
class ElementFactoryTest extends UnitTest
|
|
@@ -122,32 +122,43 @@ class ElementFactoryTest extends UnitTest
|
122
|
122
|
/*
|
123
|
123
|
* - soundcloud.com
|
124
|
124
|
*/
|
125
|
|
- $id = md5('http://soundcloud.com/matas/sets/library-project');
|
|
125
|
+ $url_id = 'http://soundcloud.com/matas/sets/library-project';
|
|
126
|
+ $embed_id = md5($url_id);
|
126
|
127
|
$this->proceed_elementAndFill(
|
127
|
128
|
$bux,
|
128
|
129
|
'faez7tf8re9h4gf5j64dssz',
|
129
|
130
|
'http://soundcloud.com/matas/sets/library-project',
|
130
|
131
|
array($hardtek->getId(), $tribe->getId()),
|
131
|
|
- '<object height="'.$this->getParam('soundcloud_player_height').'" width="100%" id="embed_'.$id.'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
|
132
|
|
- <param name="movie" value="http://player.soundcloud.com/player.swf?url=http://soundcloud.com/matas/sets/library-project&enable_api=true&object_id=embed_'.$id.'"></param>
|
|
132
|
+ '<object height="'.$this->getParam('soundcloud_player_height').'" width="100%" id="embed_'.$embed_id.'" '
|
|
133
|
+ .'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
|
|
134
|
+ <param name="movie" value="http://player.soundcloud.com/player.swf?url='.$url_id.'&'
|
|
135
|
+ .'enable_api=true&object_id=embed_'.$embed_id.'"></param>
|
133
|
136
|
<param name="allowscriptaccess" value="always"></param>
|
134
|
|
- <embed allowscriptaccess="always" height="'.$this->getParam('soundcloud_player_height').'" src="http://player.soundcloud.com/player.swf?url=http://soundcloud.com/matas/sets/library-project&enable_api=true&object_id=embed_'.$id.'" type="application/x-shockwave-flash" width="100%" name="embed_'.$id.'"></embed>
|
135
|
|
- </object>
|
136
|
|
- '
|
|
137
|
+ <embed allowscriptaccess="always" height="'.$this->getParam('soundcloud_player_height').'" '
|
|
138
|
+ .'src="http://player.soundcloud.com/player.swf?url='.$url_id.'&enable_api=true'
|
|
139
|
+ .'&object_id=embed_'.$embed_id.'" type="application/x-shockwave-flash" '
|
|
140
|
+ .'width="100%" name="embed_'.$embed_id.'"></embed>
|
|
141
|
+ </object>'
|
137
|
142
|
);
|
138
|
143
|
|
139
|
|
- $id = md5('http://soundcloud.com/matas/above-hyperion-redux');
|
|
144
|
+ $url_id = 'http://soundcloud.com/matas/above-hyperion-redux';
|
|
145
|
+ $embed_id = md5($url_id);
|
140
|
146
|
$this->proceed_elementAndFill(
|
141
|
147
|
$bux,
|
142
|
148
|
'faez7tf8re9h4gf5j64dssz',
|
143
|
149
|
'http://soundcloud.com/matas/above-hyperion-redux',
|
144
|
150
|
array($hardtek->getId(), $tribe->getId()),
|
145
|
|
- '<object height="'.$this->getParam('soundcloud_player_height').'" width="100%" id="embed_'.$id.'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
|
146
|
|
- <param name="movie" value="http://player.soundcloud.com/player.swf?url=http://soundcloud.com/matas/above-hyperion-redux&enable_api=true&object_id=embed_'.$id.'"></param>
|
|
151
|
+
|
|
152
|
+ '<object height="'.$this->getParam('soundcloud_player_height').'" width="100%" id="embed_'.$embed_id.'" '
|
|
153
|
+ .'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
|
|
154
|
+ <param name="movie" value="http://player.soundcloud.com/player.swf?url='.$url_id.'&'
|
|
155
|
+ .'enable_api=true&object_id=embed_'.$embed_id.'"></param>
|
147
|
156
|
<param name="allowscriptaccess" value="always"></param>
|
148
|
|
- <embed allowscriptaccess="always" height="'.$this->getParam('soundcloud_player_height').'" src="http://player.soundcloud.com/player.swf?url=http://soundcloud.com/matas/above-hyperion-redux&enable_api=true&object_id=embed_'.$id.'" type="application/x-shockwave-flash" width="100%" name="embed_'.$id.'"></embed>
|
149
|
|
- </object>
|
150
|
|
- '
|
|
157
|
+ <embed allowscriptaccess="always" height="'.$this->getParam('soundcloud_player_height').'" '
|
|
158
|
+ .'src="http://player.soundcloud.com/player.swf?url='.$url_id.'&enable_api=true'
|
|
159
|
+ .'&object_id=embed_'.$embed_id.'" type="application/x-shockwave-flash" '
|
|
160
|
+ .'width="100%" name="embed_'.$embed_id.'"></embed>
|
|
161
|
+ </object>'
|
151
|
162
|
);
|
152
|
163
|
|
153
|
164
|
$this->proceed_elementAndFill(
|
|
@@ -183,20 +194,21 @@ class ElementFactoryTest extends UnitTest
|
183
|
194
|
'gthyk456+liszz',
|
184
|
195
|
'http://www.jamendo.com/fr/album/30661',
|
185
|
196
|
array($hardtek->getId(), $tribe->getId()),
|
186
|
|
- '
|
187
|
|
- <object width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">
|
|
197
|
+
|
|
198
|
+ '<object width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
|
|
199
|
+ .' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">
|
188
|
200
|
<param name="allowScriptAccess" value="always" />
|
189
|
201
|
<param name="wmode" value="transparent" />
|
190
|
202
|
<param name="movie" value="http://widgets.jamendo.com/fr/album/?album_id=30661&playertype=2008" />
|
191
|
203
|
<param name="quality" value="high" />
|
192
|
204
|
<param name="bgcolor" value="#FFFFFF" />
|
193
|
|
- <embed src="http://widgets.jamendo.com/fr/album/?album_id=30661&playertype=2008" quality="high" wmode="transparent" bgcolor="#FFFFFF" width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
|
|
205
|
+ <embed src="http://widgets.jamendo.com/fr/album/?album_id=30661&playertype=2008" quality="high" wmode="transparent" bgcolor="#FFFFFF"'
|
|
206
|
+ .' width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" align="middle" allowScriptAccess="always"'
|
|
207
|
+ .' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
|
194
|
208
|
|
195
|
209
|
</embed>
|
196
|
210
|
|
197
|
|
- </object>
|
198
|
|
- <a href="http://pro.jamendo.com/" style="display:block;font-size:8px !important;">Catalogue professionnel de musique libre</a>
|
199
|
|
- '
|
|
211
|
+ </object>'
|
200
|
212
|
);
|
201
|
213
|
|
202
|
214
|
$this->proceed_elementAndFill(
|
|
@@ -204,20 +216,21 @@ class ElementFactoryTest extends UnitTest
|
204
|
216
|
'gthyk456+liszz',
|
205
|
217
|
'http://www.jamendo.com/fr/track/207079',
|
206
|
218
|
array($hardtek->getId(), $tribe->getId()),
|
207
|
|
- '
|
208
|
|
- <object width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">
|
|
219
|
+
|
|
220
|
+ '<object width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
|
|
221
|
+ .' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">
|
209
|
222
|
<param name="allowScriptAccess" value="always" />
|
210
|
223
|
<param name="wmode" value="transparent" />
|
211
|
|
- <param name="movie" value="http://widgets.jamendo.com/fr/track/?playertype=2008&track_id=207079" />
|
|
224
|
+ <param name="movie" value="http://widgets.jamendo.com/fr/track/?track_id=207079&playertype=2008" />
|
212
|
225
|
<param name="quality" value="high" />
|
213
|
226
|
<param name="bgcolor" value="#FFFFFF" />
|
214
|
|
- <embed src="http://widgets.jamendo.com/fr/track/?playertype=2008&track_id=207079" quality="high" wmode="transparent" bgcolor="#FFFFFF" width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
|
|
227
|
+ <embed src="http://widgets.jamendo.com/fr/track/?track_id=207079&playertype=2008" quality="high" wmode="transparent" bgcolor="#FFFFFF"'
|
|
228
|
+ .' width="'.$this->getParam('jamendo_player_width').'" height="'.$this->getParam('jamendo_player_height').'" align="middle" allowScriptAccess="always"'
|
|
229
|
+ .' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
|
215
|
230
|
|
216
|
231
|
</embed>
|
217
|
232
|
|
218
|
|
- </object>
|
219
|
|
- <a href="http://pro.jamendo.com/" style="display:block;font-size:8px !important;">Catalogue professionnel de musique libre</a>
|
220
|
|
- '
|
|
233
|
+ </object>'
|
221
|
234
|
);
|
222
|
235
|
|
223
|
236
|
$this->proceed_elementAndFill(
|