Skip to content

Commit 3909236

Browse files
committed
test(listener): add unrelated event regression
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 1f09954 commit 3909236

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/**
4+
* SPDX-FileCopyrightText: 2026 LibreCode coop and LibreCode contributors
5+
* SPDX-License-Identifier: AGPL-3.0-or-later
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace OCA\ProfileFields\Tests\Unit\Listener;
11+
12+
use OCA\ProfileFields\Listener\BeforeTemplateRenderedListener;
13+
use OCP\EventDispatcher\Event;
14+
use PHPUnit\Framework\TestCase;
15+
16+
class BeforeTemplateRenderedListenerTest extends TestCase {
17+
public function testHandleIgnoresUnrelatedEvent(): void {
18+
$listener = new BeforeTemplateRenderedListener();
19+
20+
$listener->handle(new class() extends Event {
21+
});
22+
23+
self::assertTrue(true);
24+
}
25+
}

0 commit comments

Comments
 (0)