MCPcopy Create free account
hub / github.com/Rello/analytics / addToFavorites

Method addToFavorites

tests/Service/ReportServiceTest.php:26–28  ·  view source on GitHub ↗
(int $reportId)

Source from the content-addressed store, hash-verified

24 public function testImportKeepsReportWhenFavoriteMarkingFails(): void {
25 $favoriteHandler = new class {
26 public function addToFavorites(int $reportId): bool {
27 throw new \RuntimeException('node with id ' . $reportId . ' not found');
28 }
29 };
30
31 $tagManager = $this->createMock(\OCP\ITagManager::class);

Callers 2

addFavoriteTagMethod · 0.80
addFavoriteTagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected