Exemple #1
0
 /**
  * Makes sure that an exception is thrown when attempting to set a preference if the user is not persistant yet.
  * 
  * @expectedException PartKeepr\Util\Exceptions\EntityNotPersistantException
  */
 public function testSetNonPersistantUserPreference()
 {
     $user = new User();
     $user->setPreference("test", "foo");
 }