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

Method addToFavorites

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

Source from the content-addressed store, hash-verified

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

Callers 2

addFavoriteTagMethod · 0.80
addFavoriteTagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected