/**
  * @group exists
  */
 public function test_exists_when_exists_in_cache()
 {
     $u = $this->factory->user->create();
     $g = $this->factory->xprofile_group->create();
     $f = $this->factory->xprofile_field->create(array('field_group_id' => $g));
     $d = new BP_XProfile_ProfileData($f, $u);
     // Fake the cache
     $c = new stdClass();
     $c->id = 3;
     wp_cache_set("{$u}:{$f}", $c, 'bp_xprofile_data');
     $this->assertTrue($d->exists());
 }