- Issue created by @zniki.ru
- Merge request !10959Issue #3500765: test internal links at LinkItemUrlValidationTest β (Open) created by zniki.ru
- π·πΊRussia zniki.ru
Create draft MR, need to decide what other internal links to test.
- π·πΊRussia zniki.ru
Add internal links.
Improved error message. Provide violation message. - πΊπΈUnited States smustgrave
Think if we are going to refactor this why not use a dataprovider?
- Status changed to Needs review
about 2 months ago 7:12pm 30 July 2025 - πΊπΈUnited States dcam
Think if we are going to refactor this why not use a dataprovider?
I'd seen the docblock of
LinkSeparateFormatterDisplayTest::testLinkSeparateFormatter()
that says "Run tests without dataProvider to improve speed." The issue for which that test was created noted that not using a data provider was a considerable performance increase. So that made me curious, what would be the performance impact of running these tests with a data provider?As they are now, the tests run in 3-5 seconds on my local environment. I refactored them to use data providers instead. The external link tests alone took 1min 17sec. The internal link tests didn't run because the provider function uses
$this
which isn't allowed in a static function. So that would take further refactoring. But I think it's clear that using a provider is less preferable without doing that extra work.