Browse Source

fix(CI): Add stub for circles events

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/10754/head
Joas Schilling 2 years ago
parent
commit
f7e1025e84
No known key found for this signature in database GPG Key ID: C400AAF20C1BB6FC
  1. 1
      psalm.xml
  2. 27
      tests/stubs/oca_circles.php

1
psalm.xml

@ -89,6 +89,7 @@
<file name="tests/stubs/oc_comments_manager.php" />
<file name="tests/stubs/oc_core_command_base.php" />
<file name="tests/stubs/oc_hooks_emitter.php" />
<file name="tests/stubs/oca_circles.php" />
<file name="tests/stubs/GuzzleHttp_Exception_ClientException.php" />
<file name="tests/stubs/GuzzleHttp_Exception_ConnectException.php" />
<file name="tests/stubs/GuzzleHttp_Exception_ServerException.php" />

27
tests/stubs/oca_circles.php

@ -0,0 +1,27 @@
<?php
namespace OCA\Circles\Events {
use OCA\Circles\Model\Circle;
use OCA\Circles\Model\Member;
use OCP\EventDispatcher\Event;
class AddingCircleMemberEvent extends Event {
public function getCircle(): Circle {
}
public function getMember(): Member {
}
}
class CircleDestroyedEvent extends Event {
public function getCircle(): Circle {
}
}
class RemovingCircleMemberEvent extends Event {
public function getCircle(): Circle {
}
public function getMember(): Member {
}
}
}
Loading…
Cancel
Save