public function test_can_validate_credentials() { $user = new AuthenticableMock(); $this->hasher->shouldReceive('check')->once()->with('myPassword', 'myPassword')->andReturn(true); $this->assertTrue($this->provider->validateCredentials($user, ['password' => 'myPassword'])); }