diff --git a/lam/tests/lib/modules/ppolicyUserTest.php b/lam/tests/lib/modules/ppolicyUserTest.php index 71fbd343..e17596b9 100644 --- a/lam/tests/lib/modules/ppolicyUserTest.php +++ b/lam/tests/lib/modules/ppolicyUserTest.php @@ -21,10 +21,10 @@ */ -include_once (dirname ( __FILE__ ) . '/../../../lib/baseModule.inc'); -include_once (dirname ( __FILE__ ) . '/../../../lib/modules.inc'); -include_once (dirname ( __FILE__ ) . '/../../../lib/passwordExpirationJob.inc'); -include_once (dirname ( __FILE__ ) . '/../../../lib/modules/ppolicyUser.inc'); +include_once '../../../lib/baseModule.inc'; +include_once '../../../lib/modules.inc'; +include_once '../../../lib/passwordExpirationJob.inc'; +include_once '../../../lib/modules/ppolicyUser.inc'; /** * Checks the ppolicy expire job. diff --git a/lam/tests/lib/typesTest.php b/lam/tests/lib/typesTest.php new file mode 100644 index 00000000..a0f9c3c4 --- /dev/null +++ b/lam/tests/lib/typesTest.php @@ -0,0 +1,48 @@ +assertEquals('User name', $attr->getAlias()); + $this->assertEquals('uid', $attr->getAttributeName()); + } + + public function testCustomAlias() { + $attr = new \LAM\TYPES\ListAttribute('uid:My translation', 'user'); + $this->assertEquals('My translation', $attr->getAlias()); + $this->assertEquals('uid', $attr->getAttributeName()); + } + +} + +?> \ No newline at end of file