예제 #1
0
파일: UserTest.php 프로젝트: ymnl007/Usher
 public function test_can_set_password()
 {
     $this->entity->setPassword(new Password('passwordsdfdfsfs', new HasherStub()));
     $this->assertInstanceOf('Maatwebsite\\Usher\\Domain\\Users\\Embeddables\\Password', $this->entity->getPassword());
     $this->assertEquals('hashed', (string) $this->entity->getPassword());
 }