/**
  * @TODO: This is just a transitional test that needs to be removed once
  * createRegistration uses the data mapper to save the registration.
  *
  * @test
  */
 public function createRegistrationSavesRegistration()
 {
     $this->createAndLogInFrontEndUser();
     $plugin = new tx_seminars_FrontEnd_DefaultController();
     $plugin->cObj = $GLOBALS['TSFE']->cObj;
     $fixture = $this->getMock('tx_seminars_registrationmanager', array('notifyAttendee', 'notifyOrganizers', 'sendAdditionalNotification', 'setRegistrationData'));
     $fixture->createRegistration($this->seminar, array(), $plugin);
     self::assertInstanceOf('tx_seminars_registration', $fixture->getRegistration());
     $uid = $fixture->getRegistration()->getUid();
     self::assertTrue(tx_oelib_db::existsRecordWithUid('tx_seminars_attendances', $uid));
     tx_oelib_db::delete('tx_seminars_attendances', 'uid = ' . $uid);
 }