Skip to content

Commit

Permalink
#328 grouping of manual scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Oct 11, 2024
1 parent 17310c4 commit 4a49afe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lam/tests/lib/modules/CustomScriptsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class CustomScriptsTest extends TestCase {

protected function setUp(): void {
$this->configLines = [
'LAM_GROUP: Group 1',
'user manual LAMLABEL="echo uid" echo $uid$',
'LAM_GROUP: Group 2',
'user manual echo $description$',
'user postModify echo $dn$',
'gon preModify echo NEW $member$ OLD $ORIG.member$',
Expand Down Expand Up @@ -79,6 +81,7 @@ public function testCustomScriptParser() {
$this->assertEquals('echo $uid$', $script->getCommand());
$this->assertEquals('manual', $script->getType());
$this->assertEquals('echo uid', $script->getLabel());
$this->assertEquals('Group 1', $script->getGroupLabel());

$script = $scripts[1];
$configuredType = new ConfiguredType($typeManager, 'user', 'user');
Expand All @@ -89,6 +92,7 @@ public function testCustomScriptParser() {
$this->assertEquals('echo $description$', $script->getCommand());
$this->assertEquals('manual', $script->getType());
$this->assertNull($script->getLabel());
$this->assertEquals('Group 2', $script->getGroupLabel());

$script = $scripts[2];
$configuredType = new ConfiguredType($typeManager, 'user', 'user');
Expand Down

0 comments on commit 4a49afe

Please sign in to comment.