Skip to content

Commit

Permalink
Restore coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jan 7, 2025
1 parent 2266297 commit f70f67c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/midgard/admin/asgard/handler/object/manageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ public function testHandler_copy()
midcom::get()->auth->drop_sudo();
}

public function testHandler_copy_tree()
{
$this->create_object(midcom_db_topic::class, ['up' => self::$_object->id]);
$this->create_user(true);
midcom::get()->auth->request_sudo('midgard.admin.asgard');
$data = $this->run_handler('net.nehmer.static', ['__mfa', 'asgard', 'object', 'copy', self::$_object->guid]);
$this->assertEquals('object_copy', $data['handler_id']);
midcom::get()->auth->drop_sudo();
}

public function testHandler_create_chooser()
{
$this->create_user(true);
Expand Down

0 comments on commit f70f67c

Please sign in to comment.