ParserTestRunner: Get rid of user-specific option
commit60288ceeda25d5aff2f7dc9f7ee473462d80c117
authorSubramanya Sastry <ssastry@wikimedia.org>
Wed, 13 Apr 2022 09:19:47 +0000 (13 14:49 +0530)
committerSubramanya Sastry <ssastry@wikimedia.org>
Thu, 14 Apr 2022 08:13:18 +0000 (14 13:43 +0530)
tree7d040c52d32f9f1fadd3ed684aaf5814dc49c4c2
parent3dd77b0c470522d591f587c9c89548376be874ba
ParserTestRunner: Get rid of user-specific option

* Parsoid currently doesn't have user state in SiteConfig and if test
  config add user-specific state, Parsoid's tests will fail since
  Parsoid\Config\SiteConfig::widthOption uses default options and not
  user-specific state.

  Alternatively, we would have to change SiteConfig code to use $wgUser
  to fetch the option value.

  But, since there is no real reason to use user-specific state in
  parser tests, we can disable this for now.

* Discovered when I enabled Parsoid testing modes for Cite and ran into
  a bunch of crashers.

* Maybe, in the not-so-distant future, we will probably have to figure
  out user-state based parsing since there are features that aren't
  amenable to html2html transformations (ex: {{int:}}) and at that time,
  we can revisit if we want to revert this change.

Change-Id: I316fe01608acf38a08df74bdff87040179461028
tests/parser/ParserTestRunner.php