21 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
35 $this->expectException(NoSuchFileException::class);
36 $this->expectExceptionCode(1471473378);
38 $mockYamlSource = $this->getAccessibleMock(YamlSource::class, [
43 'EXT:form/Resources/Forms/_example.yaml'
46 $mockYamlSource->_call(
'load', $input);
54 $this->expectException(ParseErrorException::class);
55 $this->expectExceptionCode(1480195405);
57 $mockYamlSource = $this->getAccessibleMock(YamlSource::class, [
62 'EXT:form/Tests/Unit/Mvc/Configuration/Fixtures/Invalid.yaml'
65 $mockYamlSource->_call(
'load', $input);
73 $mockYamlSource = $this->getAccessibleMock(YamlSource::class, [
77 $input = GeneralUtility::getFileAbsFileName(
'EXT:form/Tests/Unit/Mvc/Configuration/Fixtures/Header.yaml');
83 $this->assertSame($expected, $mockYamlSource->_call(
'getHeaderFromFile', $input));
91 $mockYamlSource = $this->getAccessibleMock(YamlSource::class, [
'dummy'], [],
'',
false);
94 'EXT:form/Tests/Unit/Mvc/Configuration/Fixtures/OverruleNonArrayValuesOverArrayValues1.yaml',
95 'EXT:form/Tests/Unit/Mvc/Configuration/Fixtures/OverruleNonArrayValuesOverArrayValues2.yaml'
105 $this->assertSame($expected, $mockYamlSource->_call(
'load', $input));