aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/libs/composer/ComposerLockTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move a lot of libs tests to the unit test directoryMax Semenik2019-11-111-120/+0
| | | | Change-Id: Ie7eb1016cd735f07b00524815598581e0d485f2a
* tests: Add explicit return type void to setUp() and tearDown()Max Semenik2019-10-301-1/+1
| | | | | | Bug: T192167 Depends-On: I581e54278ac5da3f4e399e33f2c7ad468bae6b43 Change-Id: I3a21fb55db76bac51afdd399cf40ed0760e4f343
* Revert "Separate MediaWiki unit and integration tests"Legoktm2019-06-131-0/+120
| | | | | | | | This reverts commit 0a2b996278e57a8b8c5377cd3a3eaa54f993d4a9. Reason for revert: Broke postgres tests. Change-Id: I27d8e0c807ad5f0748b9611a4f3df84cc213fbe1
* Separate MediaWiki unit and integration testsMáté Szabó2019-06-131-120/+0
| | | | | | | | | | | | | | | | | | | | | This changeset implements T89432 and related tickets and is based on exploration done at the Prague Hackathon. The goal is to identify tests in MediaWiki core that can be run without having to install & configure MediaWiki and its dependencies, and provide a way to execute these tests via the standard phpunit entry point, allowing for faster development and integration with existing tooling like IDEs. The initial set of tests that met these criteria were identified using the work Amir did in I88822667693d9e00ac3d4639c87bc24e5083e5e8. These tests were then moved into a new subdirectory under phpunit/ and organized into a separate test suite. The environment for this suite is set up via a PHPUnit bootstrap file without a custom entry point. You can execute these tests by running: $ vendor/bin/phpunit -d memory_limit=512M -c tests/phpunit/unit-tests.xml Bug: T89432 Bug: T87781 Bug: T84948 Change-Id: Iad01033a0548afd4d2a6f2c1ef6fcc9debf72c0d
* tests: Remove use of $IP and MediaWikiTestCase in libs/composer testsTimo Tijhof2019-01-221-5/+4
| | | | | | | | | | | | Reference the fixture files relatively instead of absolutely, this is done for most other references to data files as well I believe. Use plain arrayEquals(), which seems to suffice here. In PHP 7 at least, regular == doesn't require the declaration order of the keys to be the same in order to evaluate to true. Change-Id: Iddc874ec811f5c960e13d480d70bcb20334cfa1e
* build: Updating mediawiki/mediawiki-codesniffer to 22.0.0Umherirrender2018-09-161-1/+1
| | | | | | | | | Added spaces around . Removed empty return statement which are not required Removed return after phpunit markTestIncomplete, which is throwing to exit the test, no need for a return Change-Id: I2c80b965ee52ba09949e70ea9e7adfc58a1d89ce
* Use SPDX 3.0 license identifierKunal Mehta2018-03-181-4/+4
| | | | | | | | | SPDX released version 3 of their license list (<https://spdx.org/licenses/>), which changed the FSF licenses to explicitly end in -only or -or-later instead of relying on an easy to miss + symbol. Bug: T183858 Change-Id: I4cbb98ea2bbacf46a57401dbba2bdb076fca1d3a
* checkComposerLockUpToDate: Always check dependenciesKunal Mehta2016-10-161-8/+0
| | | | | | | | | | Upstream composer has replaced the 'hash' with a smarter 'content-hash', but instead of re-implementing (or copy-pasting) all of that in MediaWiki we can just compare the dependencies themselves, since that's all we care about. Bug: T147189 Change-Id: Ic2f22a82699e2b707b6ccb355605999a183a56a0
* Improve @covers tags for ComposerJson and ComposerLock testsKunal Mehta2016-10-021-0/+1
| | | | | | Indicate that the constructors are also covered in the tests. Change-Id: Ic87603c76e8affc31f497962375c39fb2726e604
* Convert all array() syntax to []Kunal Mehta2016-02-171-53/+53
| | | | | | | | | | 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
* Fix remaining Generic.Files.LineLength failuresAmir E. Aharoni2015-10-031-3/+8
| | | | | | | | Except the ones for which there is no clear way to fix because of T114213. Bug: T102614 Change-Id: I94a1fc7c890c82a36f0b51e42d311585c275775c
* Improve appearance of libraries on Special:VersionKunal Mehta2015-06-261-0/+61
| | | | | | | | | * Added licenses * Added description (will always be in English) * Added authors * Bold library name, like we do with extensions and skins Change-Id: I880756b489fb5a3f81d398d32162a186a1b919d8
* Don't display composer installed extensions/skins on Special:VersionKunal Mehta2015-01-051-5/+33
| | | | | | | | | | | | | Extensions and skins should already be adding their credits through $wgExtensionCredits, meaning that they would be duplicated in the "Installed libraries" section. Anything that has a type that begins with "mediawiki-" will now be skipped. Release notes were added for this commit and 528297f8db8dea. Change-Id: Ie873b16c1a8a696c7de833ae69b263161d9e15a8
* Fix @covers tags for includes/libs/composerKunal Mehta2015-01-021-1/+4
| | | | Change-Id: I90a39bce22f304eb06dd595eb845bb953e6937c3
* Add checkComposerLockUpToDate.php scriptKunal Mehta2014-12-291-0/+31
Checks whether your composer.lock file is up to date with the current composer.json file. Bug: T77388 Change-Id: I528d63172c238cf1ea9bc02e8eb39b93225865de