Skip to content
Snippets Groups Projects
Commit 18564605 authored by Remy Blom's avatar Remy Blom
Browse files

added test for array to see the new behavior actually works

parent 6bbd219e
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,26 @@ class Test_Core_Auth_Process_AttributeCopy extends PHPUnit_Framework_TestCase
$this->assertEquals($attributes['testnew'], array('AAP'));
}
/**
* Test the most basic functionality.
*/
public function testArray()
{
$config = array(
'test' => array('new1','new2'),
);
$request = array(
'Attributes' => array('test' => array('AAP')),
);
$result = self::processFilter($config, $request);
$attributes = $result['Attributes'];
$this->assertArrayHasKey('test', $attributes);
$this->assertArrayHasKey('new1', $attributes);
$this->assertArrayHasKey('new2', $attributes);
$this->assertEquals($attributes['new1'], array('AAP'));
$this->assertEquals($attributes['new2'], array('AAP'));
}
/**
* Test that existing attributes are left unmodified.
*/
......
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