Exemplo n.º 1
0
 /**
  * @test
  */
 function it_refreshes_the_user_object_on_save()
 {
     $model = new User();
     $model->user_login = '******';
     $model->user_pass = '******';
     $model->save();
     // Password is now hashed...
     $this->assertNotSame('password', $model->user_pass);
     $this->assertTrue(wp_check_password('password', $model->user_pass));
 }