Introduce HashSiteStore, mainly for use in tests
authoraude <aude.wiki@gmail.com>
Thu, 26 Feb 2015 14:53:08 +0000 (15:53 +0100)
committeraude <aude.wiki@gmail.com>
Fri, 27 Feb 2015 09:14:48 +0000 (10:14 +0100)
commitdf3ac3d09e11d0685df78ff07c7758ade963ebd6
tree2129c7c17e4b08eff6b256b0921770415dc015bc
parent39db7e461b06c979d18498cc8ea16891be9bd542
Introduce HashSiteStore, mainly for use in tests

HashSiteStore comes from Wikibase (see I783bd95), where it was
called MockSiteStore.

This enables some phpunit tests, related to Site objects, to no longer
depend on a database, memcached or other external storage. This makes
tests faster and more simple.

Bug: T90874
Change-Id: I048d37bd2aaa5f17c9fe16b2855df8bf9fe7bc8c
autoload.php
includes/site/HashSiteStore.php [new file with mode: 0644]
tests/phpunit/includes/site/HashSiteStoreTest.php [new file with mode: 0644]