tests: Fix url generation mocks and cleanup some phpunit code
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
81c8aad66f
commit
e9e5234925
@@ -284,7 +284,7 @@ class ActivityManagerTest extends TestCase {
|
||||
$this->assertEquals($event, $actual);
|
||||
}
|
||||
|
||||
public function dataSendToUsers() {
|
||||
public static function dataSendToUsers() {
|
||||
return [
|
||||
[ActivityManager::DECK_OBJECT_BOARD],
|
||||
[ActivityManager::DECK_OBJECT_CARD],
|
||||
@@ -344,7 +344,7 @@ class ActivityManagerTest extends TestCase {
|
||||
$this->invokePrivate($this->activityManager, 'sendToUsers', [$event]);
|
||||
}
|
||||
|
||||
public function dataFindObjectForEntity() {
|
||||
public static function dataFindObjectForEntity() {
|
||||
$board = new Board();
|
||||
$board->setId(1);
|
||||
$stack = new Stack();
|
||||
|
||||
Reference in New Issue
Block a user