public function testShouldValidateCredentials()
{
// Set
$provider = $this->getProvider();
$user = m::mock(Authenticatable::class);
$params = ['user' => 'user', 'password' => '1234'];
$hasher = $this->app->make(Hasher::class);
// Expectations
$user->shouldReceive('getAuthPassword')->once()->with()->andReturn($hasher->make('1234'));
// Actions
$result = $provider->validateCredentials($user, $params);
// Assertions
$this->assertTrue($result);
}