/**
  * @dataProvider entityRedirectProvider
  */
 public function testGetEntityRedirect(EntityContent $content, EntityRedirect $redirect = null)
 {
     $this->assertEquals($content->getEntityRedirect(), $redirect);
     if ($redirect === null) {
         $this->assertNull($content->getRedirectTarget());
     } else {
         $this->assertNotNull($content->getRedirectTarget());
     }
 }