diff --git a/src/Models/OAuthUser.php b/src/Models/OAuthUser.php index 896015e..a7ad08f 100644 --- a/src/Models/OAuthUser.php +++ b/src/Models/OAuthUser.php @@ -34,6 +34,11 @@ public function getAuthPassword() throw new \BadMethodCallException('Not available for OAuth users'); } + public function getAuthPasswordName() + { + throw new \BadMethodCallException('Not available for OAuth users'); + } + public function getRememberToken() { throw new \BadMethodCallException('Not available for OAuth users'); diff --git a/test/OAuthUserTest.php b/test/OAuthUserTest.php index b09a4be..f63eb3f 100644 --- a/test/OAuthUserTest.php +++ b/test/OAuthUserTest.php @@ -46,6 +46,12 @@ public function testGetAuthPasswordThrowsException() $this->oauthUser->getAuthPassword(); } + public function testGetAuthPasswordNameThrowsException() + { + $this->expectException(\BadMethodCallException::class); + $this->oauthUser->getAuthPasswordName(); + } + public function testGetRememberTokenThrowsException() { $this->expectException(\BadMethodCallException::class);