Skip to content

Commit

Permalink
[TASK] Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Sep 21, 2023
1 parent ce750f6 commit 0b4ad79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Classes/Utility/Tests/LinkUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public static function getRedundantLinkNames(array $elements): array

/** @var \DOMElement $element */
foreach ($elements as $element) {
if (!$element) {
continue;
}

if (StringUtility::stripNewLines($element->textContent) !== ''
&& !in_array($element->textContent, $linkNames)
) {
Expand Down
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"symfony/property-info": "^5.4",
"ext-dom": "*"
},
"require-dev": {
"typo3/testing-framework": "^6.9.0",
"friendsofphp/php-cs-fixer": "^3.0"
},
"replace": {
"typo3-ter/uw-a11y-check": "self.version"
},
Expand All @@ -38,18 +42,17 @@
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin"
"bin-dir": ".Build/bin",
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true
}
},
"extra": {
"typo3/cms": {
"extension-key": "uw_a11y_check",
"app-dir": ".Build",
"web-dir": ".Build/public"
}
},
"scripts": {
"post-autoload-dump": [
"TYPO3\\TestingFramework\\Composer\\ExtensionTestEnvironment::prepare"
]
}
}

0 comments on commit 0b4ad79

Please sign in to comment.