Skip to content
Snippets Groups Projects
Commit 29960f7e authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Fix broken test that was never ran because of typo in method name

parent ee81462b
No related branches found
No related tags found
No related merge requests found
...@@ -108,19 +108,19 @@ class ModuleTest extends TestCase ...@@ -108,19 +108,19 @@ class ModuleTest extends TestCase
* Test for SimpleSAML\Module::resolveClass(). It covers all the valid use cases. * Test for SimpleSAML\Module::resolveClass(). It covers all the valid use cases.
* @return void * @return void
*/ */
public function tesstResolveClass() public function testResolveClass()
{ {
// most basic test // most basic test
$this->assertEquals('sspmod_core_ACL', Module::resolveClass('core:ACL', '')); $this->assertEquals('SimpleSAML\Module\cron\Cron', Module::resolveClass('cron:Cron', ''));
// test for the $type parameter correctly translated into a path // test for the $type parameter correctly translated into a path
$this->assertEquals( $this->assertEquals(
'\SimpleSAML\Module\core\Auth\Process\PHP', 'SimpleSAML\Module\core\Auth\Process\PHP',
Module::resolveClass('core:PHP', 'Auth_Process') Module::resolveClass('core:PHP', 'Auth\Process')
); );
// test for valid subclasses // test for valid subclasses
$this->assertEquals('\SimpleSAML\Module\core\Auth\Process\PHP', Module::resolveClass( $this->assertEquals('SimpleSAML\Module\core\Auth\Process\PHP', Module::resolveClass(
'core:PHP', 'core:PHP',
'Auth\Process', 'Auth\Process',
'\SimpleSAML\Auth\ProcessingFilter' '\SimpleSAML\Auth\ProcessingFilter'
......
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