Пример #1
0
 /**
  * Makes sure that an exception is thrown when attempting to get a preference if the user is not persistant yet.
  *
  * @expectedException PartKeepr\Util\Exceptions\EntityNotPersistantException
  */
 public function testGetNonPersistantUserPreference()
 {
     $user = new User();
     $user->getPreference("test");
 }