Exemple #1
0
 protected function doUnserialize(array $json)
 {
     // consult parent for further unserialization
     parent::doUnserialize($json);
     $this->unserializeArrayEntities('roles', Bf_Role::getClassName(), $json);
     $this->unserializeArrayEntities('paymentMethods', Bf_PaymentMethod::getClassName(), $json);
     $this->unserializeEntity('profile', Bf_Profile::getClassName(), $json);
     $this->unserializeEntity('metadata', Bf_MetadataJson::getClassName(), $json);
 }
Exemple #2
0
 public function testGetByID()
 {
     $account = self::$created['account'];
     $accountID = $account->id;
     $profile = $account->profile;
     $profileID = $profile->id;
     self::$fetchedProfile = Bf_Profile::getByID($profileID);
     $expected = $accountID;
     $actual = $profile->accountID;
     $this->assertEquals($expected, $actual, "Field on fetched entity matches known value.");
 }
Exemple #3
0
 public static function initStatics()
 {
     self::$_resourcePath = new Bf_ResourcePath('profiles', 'profile');
 }