public function test_it_creates_and_returns_new_url_call_entity()
 {
     $shortenedUrlSuffix = m::mock('AppBundle\\Entity\\ShortenedUrlSuffix');
     $result = $this->factory->create($shortenedUrlSuffix);
     $this->assertInstanceOf('AppBundle\\Entity\\UrlCall', $result);
     $this->assertEquals($shortenedUrlSuffix, $result->getShortenedUrlSuffix());
     $this->assertNotEmpty($result->getDate());
 }
 /**
  * @param ShortenedUrlSuffix $shortenedUrlSuffix
  */
 public function register(ShortenedUrlSuffix $shortenedUrlSuffix)
 {
     $urlCall = $this->urlCallFactory->create($shortenedUrlSuffix);
     $this->entityManager->persist($urlCall);
     $this->entityManager->flush();
 }