aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/SeleniumConfigurationTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove Selenium tests from coreChad Horohoe2013-06-141-222/+0
| | | | | | | | | This never really worked properly, doesn't conform to coding conventions, and isn't actually used by anyone for testing. Our selenium stuff these days are in the qa/browsertests repo Change-Id: I8f1efaa118fe41821fb3f4a6099d75a33681f17b
* Tests: Use more setMwGlobalsumherirrender2013-03-211-4/+4
| | | | | | | | | Change some tests to use setMwGlobals to have restoring of globals after the test. This also removes some save/restore code, which is not needed, due to the automatically restoring on tearDown with setMwGlobals. Change-Id: I8d2ac9f6cc14f0bd4ee8eb851c09f2e71babc6e0
* Update formattingSiebrand Mazeland2013-02-141-53/+46
| | | | | | 2 of n. Change-Id: I5406673e99ed53e4e330ed47f022a17177544daa
* pass codesniffer on tests/Antoine Musso2013-01-281-2/+2
| | | | | | | | | | | | | | | Fix almost all occurences of the following sniffs: Generic.CodeAnalysis.UselessOverridingMethod.Found Generic.Formatting.NoSpaceAfterCast.SpaceFound Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine Generic.PHP.LowerCaseConstant.Found PSR2.Classes.PropertyDeclaration.ScopeMissing PSR2.Files.EndFileNewline.TooMany PSR2.Methods.MethodDeclaration.StaticBeforeVisibility Change-Id: I96aacef5bafe5a2bca659744fba1380999cfc37d
* Clean and repair many phpunit tests (+ fix implied configuration)Timo Tijhof2012-10-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit depends on the introduction of MediaWikiTestCase::setMwGlobals in change Iccf6ea81f4. Various tests already set their globals, but forgot to restore them afterwards, or forgot to call the parent setUp, tearDown... Either way they won't have to anymore with setMwGlobals. Consistent use of function characteristics: * protected function setUp * protected function tearDown * public static function (provide..) (Matching the function signature with PHPUnit/Framework/TestCase.php) Replaces: * public function (setUp|tearDown)\( * protected function $1( * \tfunction (setUp|tearDown)\( * \tprotected function $1( * \tfunction (data|provide)\( * \tpublic static function $1\( Also renamed a few "data#", "provider#" and "provides#" functions to "provide#" for consistency. This also removes confusion where the /media tests had a few private methods called dataFile(), which were sometimes expected to be data providers. Fixes: TimestampTest often failed due to a previous test setting a different language (it tests "1 hour ago" so need to make sure it is set to English). MWNamespaceTest became a lot cleaner now that it executes with a known context. Though the now-redundant code that was removed didn't work anyway because wgContentNamespaces isn't keyed by namespace id, it had them was values... FileBackendTest: * Fixed: "PHP Fatal: Using $this when not in object context" HttpTest * Added comment about: "PHP Fatal: Call to protected MWHttpRequest::__construct()" (too much unrelated code to fix in this commit) ExternalStoreTest * Add an assertTrue as well, without it the test is useless because regardless of whether wgExternalStores is true or false it only uses it if it is an array. Change-Id: I9d2b148e57bada64afeb7d5a99bec0e58f8e1561
* Add, update, tweak documentationSam Reed2011-10-261-12/+12
| | | | | | | | | Fix document comment blocks Tweak some returns Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/100779
* Blindly fix the error produced in r82880.Platonides2011-02-281-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82935
* $somevariable; doesn't count as defining a variableSam Reed2011-02-271-12/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82880
* * verbose and color default output from phpunitChad Horohoe2010-12-281-1/+1
| | | | | | | | * Make a bunch of tests subclass MediaWikiTestCase * Parser tests and ResourceLoaderTest can't subclass it yet due to various issues Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79117
* Fix path changes from move in r78383Chad Horohoe2010-12-141-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78386
* Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. ↵Chad Horohoe2010-12-141-0/+228
They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78383