Follow-up to #3547124: Remove system module from kernel tests that don't need it →
Use this bash script to find and replace possible candidates. If the test fails it will be reverted. If it passes, we can review and commit the change.
find core/ -type f -name '*Test.php' \
| grep -E '/Kernel(/|Tests/)' \
| while read -r FILE; do
if grep -q "^ 'user',\$" "$FILE"; then
sed -i "/^ 'user',\$/d" "$FILE"
if ! ./vendor/bin/phpunit --stop-on-error --stop-on-fail -c core/phpunit.xml.dist "$FILE"; then
echo "Test failed for $FILE, reverting..."
git checkout -- "$FILE"
else
echo "Test passed for $FILE"
fi
fi
done
N/A
N/A
N/A
N/A
N/A
Needs review
11.0 🔥
user.module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.