mediawiki-extensions-Cite/tests/phpunit
Thiemo Kreuz 6a4a0fd013 Replace ReferenceStack mocks with actual instances
… if possible. In most cases it's possible to use the real object, and
reach into it's private parts via TestingAccessWrapper. This is almost
the same as using a mock, but I feel it's much more "light-weight".

The main change is that there is no strict assertion any more for the
number of ReferenceStack::pushInvalidRef() calls. Before this was mixed
into the same array as the valid references, as elements set to "false".
I think the test is as valueable as before without this extra check. If
the rollback stack works or not is already covered by other tests.

Change-Id: I90213557b164b3e43233a3dc393ee3f3d3d556a9
2020-01-20 16:31:48 +01:00
..
unit Replace ReferenceStack mocks with actual instances 2020-01-20 16:31:48 +01:00
CiteCSSFileModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteDbTest.php Fix PHPUnit 8 warning 2020-01-20 10:33:56 +00:00
CiteHooksTest.php Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00
CiteIntegrationTest.php Replace ReferenceStack mocks with actual instances 2020-01-20 16:31:48 +01:00
ReferenceMessageLocalizerTest.php Remove single use classes from the use section 2019-12-17 14:57:55 +01:00