Esempio n. 1
0
 /**
  * @param \HHPnet\Core\Domain\Users\User $user
  */
 public function let(User $user)
 {
     $user->getId()->willReturn(1);
     $user->getUsername()->willReturn('test');
     $user->getEmail()->willReturn('test');
     $this->beConstructedWith($user);
 }
Esempio n. 2
0
 /**
  * @param \HHPnet\Core\Domain\Users\User $user
  */
 public function let(User $user)
 {
     $user->getId()->willReturn(1);
     $user->getUsername()->willReturn('username');
     $user->getEmail()->willReturn('*****@*****.**');
     $user->getPassword()->willReturn('password');
     $this->beConstructedWith($user);
 }