Skip to content
Snippets Groups Projects
Commit 5df25ae6 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix UndefinedMethod (2x)

parent c4a4d04f
No related branches found
No related tags found
No related merge requests found
......@@ -23,12 +23,12 @@ class UserPassBaseTest extends \PHPUnit\Framework\TestCase
$username = $_SERVER['PHP_AUTH_USER'] = 'username';
$password = $_SERVER['PHP_AUTH_PW'] = 'password';
/** @var \SimpleSAML\Module\core\Auth\UserPassBase $stub */
$stub = $this->getMockBuilder(UserPassBase::class)
->disableOriginalConstructor()
->setMethods(['login'])
->getMockForAbstractClass();
/** @var \SimpleSAML\Module\core\Auth\UserPassBase $stub */
$stub->expects($this->once())
->method('login')
->with($username, $password)
......@@ -102,12 +102,12 @@ class UserPassBaseTest extends \PHPUnit\Framework\TestCase
$_SERVER['PHP_AUTH_USER'] = 'username';
$password = $_SERVER['PHP_AUTH_PW'] = 'password';
/** @var \SimpleSAML\Module\core\Auth\UserPassBase $stub */
$stub = $this->getMockBuilder(UserPassBase::class)
->disableOriginalConstructor()
->setMethods(['login'])
->getMockForAbstractClass();
/** @var \SimpleSAML\Module\core\Auth\UserPassBase $stub */
$stub->expects($this->once())
->method('login')
->with($forcedUsername, $password)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment