public function testSetMetadataFor()
 {
     $cache = new ArrayCache();
     $this->cmf->setCacheDriver($cache);
     $metadata = new ClassMetadata('Oro\\Bundle\\UserBundle\\Entity\\User');
     $this->cmf->setMetadataFor('Oro\\Bundle\\UserBundle\\Entity\\User', $metadata);
     $cacheSalt = '$CLASSMETADATA';
     $this->assertAttributeSame(['[Oro\\Bundle\\UserBundle\\Entity\\User' . $cacheSalt . '][1]' => $metadata], 'data', $this->cmf->getCacheDriver());
 }
 public function testSetMetadataForWithoutCacheDriver()
 {
     $metadata = new ClassMetadata('Oro\\Bundle\\UserBundle\\Entity\\User');
     $this->cmf->setMetadataFor('Oro\\Bundle\\UserBundle\\Entity\\User', $metadata);
 }