aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/mocks/filebackend
Commit message (Collapse)AuthorAgeFilesLines
* tests: Use namespaced classesUmherirrender2024-10-212-0/+4
| | | | | | | | Changes to the use statements and some additions are done automatically via script This also updates @covers tag for the namespaced classes Change-Id: I859ba6d05018c99710b744e2becab432410d3bca
* libs: Add missing documentation to class propertiesUmherirrender2024-09-131-1/+2
| | | | | | | | | | Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: I46f46f1855ca32c89a276b06f4e2051ff541886e
* tests: Use standard utilities for temporary file namesTimo Tijhof2019-05-061-1/+1
| | | | Change-Id: Iff28c27990a81b02a92148a88256b9a25518f496
* Improve some parameter docsUmherirrender2017-09-101-0/+1
| | | | | | Add missing @return and @param to function docs and fixed some @param Change-Id: I810727961057cfdcc274428b239af5975c57468d
* Fix typo "developement" in MockFSFile commentFederico Leva2017-06-151-2/+2
| | | | Change-Id: If5beaff9bceea44a7e2d4d893b82a294e61afc84
* tests: Replace implicit Bugzilla bug numbers with Phab onesJames D. Forrester2017-02-211-1/+1
| | | | | | | It's unreasonable to expect newbies to know that "bug 12345" means "Task T14345" except where it doesn't, so let's just standardise on the real numbers. Change-Id: I46261416f7603558dceb76ebe695a5cac274e417
* FSFile and TempFSFile cleanupsAaron Schulz2016-09-191-5/+1
| | | | | | | | | | | | * Remove wf* function dependencies. This includes wfTempDir(). Callers now should specify the directory, though it will try to do most of the wfTempDir() logic anyway if they do not. * Update callers to inject wfTempDir() so $wgTmpDirectory is used by TempFSFile instead of it probing to find a valid directory itself. * Move most of the wfTempDir() logic to TempFSFile::getUsableTempDirectory(). * Remove unused getMimeType() method. Change-Id: Idd55936b07f9448a6c90577708722b7b52b8fe66
* Convert all array() syntax to []Kunal Mehta2016-02-172-3/+3
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Added a MemoryFileBackend class and made MockFileBackend subclass itAaron Schulz2013-12-191-85/+2
| | | | | | | | | | * This backend passes all filebackend and parser tests * Fixed setupUploads() in parser tests to just use create() instead of using store() and having a race condition in the process * Fixed 'use-filebackend=' for Parser tests bug: 58094 Change-Id: Ib0c38183cb7f9f2325da98c8a8a1eb2b8e39a7aa
* Removed some inappropriate global state from FSFileAaron Schulz2013-06-211-1/+1
| | | | Change-Id: I48bc82eab486c119ed1ac7812d2da97490088cd4
* Fixed spacing and removed unneeded parenthesisumherirrender2013-05-171-9/+9
| | | | | | | | Added spaces after/before parenthesis Removed unneeded parenthesis around some statements Broke a long line Change-Id: I7fbe129f7bbf524dd0598ece2a9708643f08453b
* tests: mock parser tests file accessAntoine Musso2013-05-102-0/+191
I eventually got tired of our parser tests creating and deleting fixture files over and over. This patch mock the files in memory and just expose the file metadata which is all we need for parser tests. The mocked classes are under /tests/phpunit/mocks/ and respect the hierarchy of /includes/. The wiki.png and headbg.jpg files are still copied on each test :/ Change-Id: Iccdff67222e66d48d01dd1596d09df2ea24b8c2a