2 declare(strict_types = 1);
19 use Psr\Http\Message\ServerRequestInterface;
23 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
40 $subject = $this->getAccessibleMock(
41 HrefLangGenerator::class,
44 $this->prophesize(ContentObjectRenderer::class)->reveal(),
45 $this->prophesize(TypoScriptFrontendController::class)->reveal(),
46 $this->prophesize(ServerRequestInterface::class)->reveal()
50 $check = $shouldBeCalled ? $this->once() : $this->never();
51 $subject->expects($check)->method(
'getSiteLanguage');
52 $subject->_call(
'getAbsoluteUrl', $url);
74 'example.com/filename.pdf',
78 '//example.com/filename.pdf',
86 'https://example.com',
94 'https://example.com/page-1/subpage-1',