Skip to content

Commit 3fb1639

Browse files

File tree

772 files changed

+21257
-24447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

772 files changed

+21257
-24447
lines changed

.gitattributes

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# .gitattributes
22

3-
Build export-ignore
3+
/.github export-ignore
4+
/.project export-ignore
5+
/Build export-ignore
46
.gitkeep export-ignore
57
/.editorconfig export-ignore
68
/.gitattributes export-ignore
79
/.gitignore export-ignore
10+
/.phpstorm.meta.php export-ignore
811
/.eslintrc export-ignore
912
/.travis.yml export-ignore
10-
/phpunit.xml.dist export-ignore
11-
/Tests export-ignore
1213
/Resources/Private/Sass export-ignore
1314
/Resources/Private/config.rb export-ignore
1415
/Resources/Private/Clickdummy export-ignore
16+
/Tests export-ignore
17+
/Makefile export-ignore
18+
/phive.xml export-ignore
1519

1620
# Handle line endings automatically for files detected as text
1721
# and leave all files detected as binary untouched.

.phpstorm.meta.php

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
namespace PHPSTORM_META {
4+
5+
registerArgumentsSet('side', 'local', 'foreign');
6+
registerArgumentsSet(
7+
'DependencyRequirement',
8+
\In2code\In2publishCore\Component\Core\Record\Model\Dependency::REQ_EXISTING,
9+
\In2code\In2publishCore\Component\Core\Record\Model\Dependency::REQ_ENABLECOLUMNS,
10+
\In2code\In2publishCore\Component\Core\Record\Model\Dependency::REQ_FULL_PUBLISHED,
11+
);
12+
13+
expectedReturnValues(
14+
\In2code\In2publishCore\Component\Core\Record\Model\Record::getState(),
15+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_ADDED,
16+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_CHANGED,
17+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_MOVED,
18+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_SOFT_DELETED,
19+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_DELETED,
20+
\In2code\In2publishCore\Component\Core\Record\Model\Record::S_UNCHANGED
21+
);
22+
expectedReturnValues(
23+
\In2code\In2publishCore\Service\Context\ContextService::getContext(),
24+
\In2code\In2publishCore\Service\Context\ContextService::LOCAL,
25+
\In2code\In2publishCore\Service\Context\ContextService::FOREIGN
26+
);
27+
expectedReturnValues(
28+
\In2code\In2publishCore\Component\Core\Record\Model\Dependency::getRequirement(),
29+
argumentsSet('DependencyRequirement')
30+
);
31+
32+
override(\Psr\Container\ContainerInterface::get(), type(0));
33+
override(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(), type(0));
34+
override(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(), type(0));
35+
36+
expectedArguments(
37+
\In2code\In2publishCore\Component\Core\PreProcessing\ProcessingResult::__construct(),
38+
0,
39+
\In2code\In2publishCore\Component\Core\PreProcessing\ProcessingResult::COMPATIBLE,
40+
\In2code\In2publishCore\Component\Core\PreProcessing\ProcessingResult::INCOMPATIBLE
41+
);
42+
expectedArguments(
43+
\In2code\In2publishCore\Component\RemoteProcedureCall\Envelope::__construct(),
44+
0,
45+
\In2code\In2publishCore\Component\RemoteProcedureCall\EnvelopeDispatcher::CMD_FOLDER_EXISTS,
46+
\In2code\In2publishCore\Component\RemoteProcedureCall\EnvelopeDispatcher::CMD_FILE_EXISTS,
47+
\In2code\In2publishCore\Component\RemoteProcedureCall\EnvelopeDispatcher::CMD_LIST_FOLDER_CONTENTS
48+
);
49+
expectedArguments(
50+
\In2code\In2publishCore\Component\ConfigContainer\Builder::addNode(),
51+
0,
52+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_ARRAY,
53+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_STRICT_ARRAY,
54+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_STRING,
55+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_OPTIONAL_ARRAY,
56+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_OPTIONAL_STRING,
57+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_INTEGER,
58+
\In2code\In2publishCore\Component\ConfigContainer\Node\Node::T_BOOLEAN
59+
);
60+
expectedArguments(
61+
\In2code\In2publishCore\Testing\Data\FalStorageTestSubjectsProvider::getStorages(),
62+
0,
63+
\In2code\In2publishCore\Testing\Data\FalStorageTestSubjectsProvider::PURPOSE_CASE_SENSITIVITY,
64+
\In2code\In2publishCore\Testing\Data\FalStorageTestSubjectsProvider::PURPOSE_DRIVER,
65+
\In2code\In2publishCore\Testing\Data\FalStorageTestSubjectsProvider::PURPOSE_MISSING,
66+
\In2code\In2publishCore\Testing\Data\FalStorageTestSubjectsProvider::PURPOSE_UNIQUE_TARGET
67+
);
68+
expectedArguments(
69+
\In2code\In2publishCore\Service\Database\RawRecordService::getRawRecord(),
70+
2,
71+
argumentsSet('side')
72+
);
73+
expectedArguments(
74+
\In2code\In2publishCore\Service\Database\RawRecordService::fetchRecord(),
75+
2,
76+
argumentsSet('side')
77+
);
78+
expectedArguments(
79+
\In2code\In2publishCore\Component\Core\Record\Model\Dependency::__construct(),
80+
3,
81+
argumentsSet('DependencyRequirement')
82+
);
83+
}
84+
85+
86+
87+
88+
89+

Build/FunctionalTestsBootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
* The TYPO3 project - inspiring people to share!
1313
*/
1414

15-
use TYPO3\TestingFramework\Core\Testbase;
16-
1715
call_user_func(function () {
1816
if (!getenv('IN2PUBLISH_CONTEXT')) {
1917
putenv('IN2PUBLISH_CONTEXT=Local');

Build/UnitTests.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0"?>
12
<phpunit
23
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
@@ -7,7 +8,7 @@
78
convertErrorsToExceptions="true"
89
convertWarningsToExceptions="true"
910
convertNoticesToExceptions="true"
10-
forceCoversAnnotation="false"
11+
forceCoversAnnotation="true"
1112
processIsolation="false"
1213
stopOnError="false"
1314
stopOnFailure="false"
@@ -22,9 +23,14 @@
2223
<directory>../Tests/Unit/</directory>
2324
</testsuite>
2425
</testsuites>
26+
<coverage>
27+
<include>
28+
<directory>../Classes/</directory>
29+
</include>
30+
</coverage>
2531
<php>
26-
<const name="TYPO3_MODE" value="BE" />
27-
<ini name="display_errors" value="1" />
28-
<env name="TYPO3_CONTEXT" value="Testing" />
32+
<const name="TYPO3_MODE" value="BE"/>
33+
<ini name="display_errors" value="1"/>
34+
<env name="TYPO3_CONTEXT" value="Testing"/>
2935
</php>
3036
</phpunit>

Build/UnitTestsBootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use TYPO3\CMS\Core\Core\SystemEnvironmentBuilder;
2424
use TYPO3\CMS\Core\DependencyInjection\ContainerBuilder;
2525
use TYPO3\CMS\Core\Log\LogManager;
26-
use TYPO3\CMS\Core\Package\Cache\PackageCacheInterface;
2726
use TYPO3\CMS\Core\Package\PackageManager;
2827
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
2928
use TYPO3\CMS\Core\Utility\GeneralUtility;

0 commit comments

Comments
 (0)