This commit is contained in:
Roland Gruber 2018-09-15 15:07:53 +02:00
parent 5b81c8e03c
commit 2b9d775347
1 changed files with 20 additions and 0 deletions

View File

@ -277,6 +277,26 @@ class ImporterTest extends PHPUnit_Framework_TestCase {
$tasks = $importer->getTasks($lines); $tasks = $importer->getTasks($lines);
} }
/**
* Change entry with modify changetype and add operation.
*/
public function testChangeModifyAddInvalid() {
$lines = array(
"version: 1",
"",
"dn: uid=test,dc=example,dc=com",
"changeType: modify",
"add: uid",
"uid: uid1",
"invalid: uid2"
);
$this->setExpectedException(LAMException::class, 'uid=test,dc=example,dc=com');
$importer = new Importer();
$tasks = $importer->getTasks($lines);
}
/** /**
* Change entry with modify changetype and add operation. * Change entry with modify changetype and add operation.
*/ */