示例#1
0
 public function testPostPasswordReset()
 {
     $this->keyManagerMock->expects($this->once())->method('deleteUserKeys')->with('testUser');
     $this->userSetupMock->expects($this->once())->method('setupUser')->with('testUser', 'password');
     $this->instance->postPasswordReset($this->params);
     $this->assertTrue(true);
 }
示例#2
0
 public function testPostPasswordReset()
 {
     $this->keyManagerMock->expects($this->once())->method('replaceUserKeys')->with('testUser');
     $this->userSetupMock->expects($this->once())->method('setupServerSide')->with('testUser', 'password');
     $this->assertNull($this->instance->postPasswordReset($this->params));
 }