18 use TYPO3\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
30 protected function setUp()
34 $this->injectDependenciesIntoViewHelper($this->viewHelper);
35 $this->viewHelper->setRenderChildrenClosure(
37 return 'http://www.some-domain.tld';
47 $this->setArgumentsUnderTest(
50 'uri' =>
'http://www.some-domain.tld'
53 $actualResult = $this->viewHelper->initializeArgumentsAndRender();
54 $this->assertEquals(
'http://www.some-domain.tld', $actualResult);
62 $this->setArgumentsUnderTest(
65 'uri' =>
'www.some-domain.tld',
68 $actualResult = $this->viewHelper->initializeArgumentsAndRender();
69 $this->assertEquals(
'http://www.some-domain.tld', $actualResult);
77 $this->setArgumentsUnderTest(
80 'uri' =>
'some-domain.tld',
81 'defaultScheme' =>
'ftp'
84 $actualResult = $this->viewHelper->initializeArgumentsAndRender();
85 $this->assertEquals(
'ftp://some-domain.tld', $actualResult);
93 $this->setArgumentsUnderTest(
96 'uri' =>
'some-domain.tld',
100 $actualResult = $this->viewHelper->initializeArgumentsAndRender();
101 $this->assertEquals(
'some-domain.tld', $actualResult);