|
@@ -420,34 +420,44 @@ class ContextTestCases
|
420
|
420
|
|
421
|
421
|
public function playlistUnpickResponseIs($success, $condition)
|
422
|
422
|
{
|
423
|
|
- return $this->ajaxResponseSatisfyConditions(
|
424
|
|
- $this->getAjaxRequestContentResponse(
|
425
|
|
- 'GET',
|
426
|
|
- $this->test->generateUrl('playlist_unpick', array(
|
427
|
|
- 'playlist_id' => 0,
|
428
|
|
- '_locale' => 'fr'
|
429
|
|
- ))
|
430
|
|
- ),
|
|
423
|
+ $this->playlistUnPick(0);
|
|
424
|
+ return $this->responseSatisfyConditions(
|
|
425
|
+ $this->test->getClient()->getResponse(),
|
431
|
426
|
$success,
|
432
|
|
- $condition
|
|
427
|
+ $condition,
|
|
428
|
+ $this->test->getUser()
|
433
|
429
|
);
|
434
|
430
|
}
|
435
|
431
|
|
|
432
|
+ public function playlistUnPick($playlist_id)
|
|
433
|
+ {
|
|
434
|
+ $this->test->goToPage($this->test->generateUrl('playlist_unpick', array(
|
|
435
|
+ 'playlist_id' => $playlist_id,
|
|
436
|
+ '_locale' => 'fr'
|
|
437
|
+ )));
|
|
438
|
+ }
|
|
439
|
+
|
436
|
440
|
public function playlistPickResponseIs($success, $condition)
|
437
|
441
|
{
|
|
442
|
+ $this->playlistPick(0);
|
438
|
443
|
return $this->ajaxResponseSatisfyConditions(
|
439
|
|
- $this->getAjaxRequestContentResponse(
|
440
|
|
- 'GET',
|
441
|
|
- $this->test->generateUrl('playlist_pick', array(
|
442
|
|
- 'playlist_id' => 0,
|
443
|
|
- '_locale' => 'fr'
|
444
|
|
- ))
|
445
|
|
- ),
|
|
444
|
+ $this->test->getClient()->getResponse()->getContent(),
|
446
|
445
|
$success,
|
447
|
446
|
$condition
|
448
|
447
|
);
|
449
|
448
|
}
|
450
|
449
|
|
|
450
|
+ public function playlistPick($playlist_id)
|
|
451
|
+ {
|
|
452
|
+ return $this->getAjaxRequestContentResponse(
|
|
453
|
+ 'GET',
|
|
454
|
+ $this->test->generateUrl('playlist_pick', array(
|
|
455
|
+ 'playlist_id' => $playlist_id,
|
|
456
|
+ '_locale' => 'fr'
|
|
457
|
+ ))
|
|
458
|
+ );
|
|
459
|
+ }
|
|
460
|
+
|
451
|
461
|
public function playlistShowResponseIs($success, $condition)
|
452
|
462
|
{
|
453
|
463
|
$this->playlistShow('bux', 0);
|