Skip to content

Commit

Permalink
[TASK] remove test that does not make sense due to typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Nov 7, 2022
1 parent 891cebd commit 426058d
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions Tests/Functional/Service/RenderingServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,6 @@ public function setUp(): void
$this->renderingService = GeneralUtility::makeInstance(RenderingService::class, $this->footnoteRepository);
}

/**
* @test
*/
public function shouldNotRenderWithNoUids()
{
$this->markTestSkipped('Makes no sense if we use typehints, then getIndexNumber can not return a string');

$footnote1 = $this->getMockBuilder(Footnote::class)->onlyMethods(['getHeader', 'getDescription', 'getIndexNumber'])->getMock();

$footnote1->_setProperty('uid', 4711);
$footnote1->expects(self::any())->method('getHeader')->willReturn('HEADER@4711');
$footnote1->method('getIndexNumber')->willReturn('4711');
$footnote1->expects(self::any())->method('getDescription')->willReturn('DESCRIPTION@4711');

$footnote2 = $this->getMockBuilder(Footnote::class)->onlyMethods(['getHeader', 'getDescription', 'getIndexNumber'])->getMock();

$footnote2->_setProperty('uid', 4712);
$footnote2->method('getHeader')->willReturn('HEADER@4712');
$footnote2->method('getIndexNumber')->willReturn('4712');
$footnote2->method('getDescription')->willReturn('DESCRIPTION@4712');

$this->footnoteRepository->method('getFootnotesByUids')->willReturn([$footnote1, $footnote2]);

$content = $this->renderingService->renderFootnotes([]);
self::assertEquals('', $content);
}

/**
* @test
*/
Expand Down

0 comments on commit 426058d

Please sign in to comment.