resourceloader: Improve test cases for MessageBlobStore
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 27 Mar 2019 20:23:02 +0000 (20:23 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 27 Mar 2019 23:53:23 +0000 (23:53 +0000)
commit853a291903dc6d21c3d1e92400c2d205a5537958
treeaadd7da5244f98f02e7e3d1ac83486d0f7d82a8e
parentb4ad29cd838ed9d2120126592c22acb5d6487f6e
resourceloader: Improve test cases for MessageBlobStore

Move source code to includes/resourceloader to match
test case. This is part of ResourceLoader and not meant
to be used elsewhere.

Merge two similar test cases for getting blobs and fetching
messages which were doing the same thing.

Rewrite the test names to be a better reflection of the stories
they test, add comments for why, and re-order them to put related
tests together.

Move test-utilities to the bottom and make them actually private.

Change-Id: I7a437eebf3ba6a722e286dfe77c2f9fe49ad222f
autoload.php
includes/cache/MessageBlobStore.php [deleted file]
includes/resourceloader/MessageBlobStore.php [new file with mode: 0644]
tests/phpunit/includes/resourceloader/MessageBlobStoreTest.php