Commit graph

3 commits

Author SHA1 Message Date
Ammarpad
c2743edd26 Fix SpecialPage alias test
This was testing regex with completely unecessary long string.

I believe it was meant to be the test message instead of being the
haystack. Only the value of $alias may contain the slash, the rest
of the string has no any other slash, this is already known.

Also use simple string assertion instead of regex matching

Change-Id: I47eb0bfcd510e4f1c92099a9cb53b584a34036ce
2021-01-14 10:02:11 +01:00
Ammarpad
701fc49eb5 Use generator in SpecialPage alias test
This sped up the execution time, up to 3 seconds on average.

Change-Id: Ib4577041f7457de892aade122fc7fd0754b8c70e
2021-01-13 23:05:18 +00:00
Kosta Harlan
508d3a0227 phpunit: Switch SpecialPageAliasTest to integration tests
As its comment notes, this is more of a structure test anyway.

Bug: T266441
Change-Id: I83bd577674ad65d7b90c93559dd5223164336a24
2020-11-19 13:36:09 +00:00