19declare(strict_types=1);
25use PHPUnit\Framework\TestCase;
31 $object_ids = array_map(
function (
string $id) {
32 return $id + rand(0, 20);
35 $component =
"componentcomponent";
36 $class_name =
"classclass";
38 $target_release =
"2000.20";
40 $target_1 = (
new ilExportHandlerTarget())
42 ->withComponent($component)
43 ->withClassname($class_name)
44 ->withTargetRelease($target_release)
45 ->withObjectIds($object_ids);
46 self::assertEquals($type, $target_1->getType());
47 self::assertEquals($component, $target_1->getComponent());
48 self::assertEquals($class_name, $target_1->getClassname());
49 self::assertEquals($target_release, $target_1->getTargetRelease());
50 self::assertEmpty(array_diff($object_ids, $target_1->getObjectIds()));
51 }
catch (Exception $exception) {
52 self::fail($exception->getMessage());
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
testExportHandlerTarget()