/**
  * @param \_OurBrand_\Quiz\Domain\Model\Exercises\MatchPictureInPictureExercise $exercise
  * @return void
  */
 private function previewAssignment($exercise)
 {
     $shapes = $exercise->getRandomShapes();
     $this->view->assign('shapes', $shapes);
     $this->view->assign('solvedShapes', json_encode(array()));
     // there are no already answered data in preview
     $this->view->assign('explanationTranslateKey', 'exerciseType.matchPictureInPicture.explanation');
     $this->view->assign('currentExercise', $exercise);
     $this->view->assign('quiz', $exercise->getQuiz());
 }
 /**
  * @dataProvider answersDataProvider
  * @param $answers
  * @param $assertions
  */
 public function testIsCompleted($answers, $assertions)
 {
     $exercise = new MatchPictureInPictureExercise();
     $this->assertSame($assertions['isComplete'], $exercise->isCompleted($answers));
 }