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

Fix tests

parent 4088f9d4
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class CryptoTest extends TestCase
*
* @expectedException \InvalidArgumentException
*
* @covers \SimpleSAML\Utils\Crypto::_aesDecrypt
* @covers \SimpleSAML\Utils\Crypto::aesDecrypt
*/
public function testAesDecryptBadInput()
{
......@@ -50,7 +50,7 @@ class CryptoTest extends TestCase
*
* @expectedException \InvalidArgumentException
*
* @covers \SimpleSAML\Utils\Crypto::_aesEncrypt
* @covers \SimpleSAML\Utils\Crypto::aesEncrypt
*/
public function testAesEncryptBadInput()
{
......@@ -65,7 +65,7 @@ class CryptoTest extends TestCase
* Test that aesDecrypt() works properly, being able to decrypt some previously known (and correct)
* ciphertext.
*
* @covers \SimpleSAML\Utils\Crypto::_aesDecrypt
* @covers \SimpleSAML\Utils\Crypto::aesDecrypt
*/
public function testAesDecrypt()
{
......@@ -86,8 +86,8 @@ class CryptoTest extends TestCase
/**
* Test that aesEncrypt() produces ciphertexts that aesDecrypt() can decrypt.
*
* @covers \SimpleSAML\Utils\Crypto::_aesDecrypt
* @covers \SimpleSAML\Utils\Crypto::_aesEncrypt
* @covers \SimpleSAML\Utils\Crypto::aesDecrypt
* @covers \SimpleSAML\Utils\Crypto::aesEncrypt
*/
public function testAesEncrypt()
{
......
......@@ -25,14 +25,10 @@ class UserPassOrgBaseTest extends \PHPUnit_Framework_TestCase
]
];
// When PHP 5.4 support is dropped, replace with:
// $mockUserPassOrgBase = $this->getMockBuilder(\SimpleSAML\Module\core\Auth\UserPassOrgBase::class)
$multi = new \SimpleSAML\Module\ldap\Auth\Source\LDAPMulti(['AuthId' => 'my-org']);
$mockUserPassOrgBase = $this->getMockBuilder(get_parent_class($multi, []))
$mockUserPassOrgBase = $this->getMockBuilder(\SimpleSAML\Module\core\Auth\UserPassOrgBase::class)
->setConstructorArgs([['AuthId' => 'my-org'], &$config])
->setMethods([])
->getMockForAbstractClass();
$this->assertTrue($mockUserPassOrgBase->getRememberOrganizationEnabled());
}
}
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