Commit graph

14 commits

Author SHA1 Message Date
Timo Tijhof
b36d883017 Tests: Make phpunit providers "public static".
Follows-up I9d2b148e57 (including phpunit/languages this time).

Bug: 46434
Change-Id: I30e5efcd88c516121c454676bd7a18f9b7c8fca6
2013-03-22 03:12:37 +01:00
Siebrand Mazeland
49dfbc59d0 Update formatting
6 of n.

Change-Id: I0ca3f1f72349623631ce1d7f3a4e2ed5edbdbdf4
2013-02-15 12:44:42 +00:00
Antoine Musso
0fd05285d7 pass codesniffer on tests/
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
2013-01-28 12:14:26 +01:00
jenkins-bot
587626d03a Merge "(bug 44338) set the site internal id when loading sites from the db" 2013-01-25 13:18:13 +00:00
aude
5b33ae42d9 (bug 44338) set the site internal id when loading sites from the db
Change-Id: Id0d76255e8f12ac7101b8334e3968cdbf4b04851
2013-01-25 13:03:21 +00:00
daniel
93be12f54d Add a method to clear the site list programmatically.
Change-Id: Iecee9c4d52676f95845517a5b5dbcb500ea66cc4
2013-01-24 18:18:59 +00:00
daniel
ae9f19ab52 Clear caches automatically when changing site list.
This introduces SiteSQLStore::reset() and calls it in all
methods that modify the site list.

Change-Id: If865ac16f7e79df9999db27ebe22aea5a0bc9a6b
2013-01-24 19:10:19 +01:00
jeroendedauw
232dfda61c Implemented Serializable interface in Site
Change-Id: I1d8394e0aa65e6ba16f1a1c1021bcae93ebb3e41
2013-01-24 14:41:59 +01:00
jeroendedauw
a00337c3f8 Design improvements to sites code
Change-Id: I08ffa6a97093abbe85169f664b97498c5f39bf8e
2013-01-22 15:39:23 +01:00
jeroendedauw
9e4761e3aa Fixed SiteArray serialization
Change-Id: I9844236b8720d96f99aef788ab023c522f993045
2012-12-12 20:00:03 +01:00
daniel
980da6d6a7 ORMRow must not ignore failures on insert by deault.
ORMRow shouldn't apply the "IGNORE" modifier for insertions by default.
IGNORE means pretending the insert was successfull even if it wasn't.
That's not a good default, and for some databases (like sqlite), may
actually hide errors beyond key conflicts.

Change-Id: I8b00cd03a459419441195ed25091385371b027a5
2012-10-31 20:15:02 +01:00
Tobias Gritschacher
fa259fcc8a Fix for SiteListTest failing on 32bit machines
- this fixes an issue with test data which is a too large integer
  interpreted as float on 32 bit systems
- see http://www.php.net/manual/de/language.types.integer.php#103506
- "On a 32-bit system, the largest value that can be held in an INT is
  2147483647."

Change-Id: I577dfba3b32e93535c06329ee1b4de28366a1aac
2012-10-15 12:38:10 +02:00
jeroendedauw
d9c1bc7262 Update @since tags from 1.20 to 1.21
Change-Id: Iea7bad4367782ee8baa676921625b44dc2b7c45f
2012-10-12 18:29:28 +02:00
jeroendedauw
7389d7c690 Added sites functionality, a much more generic and flexible version of the existing interwiki code
This code is meant to replace the current interwiki code, but does not do so just yet. It is however used by the Wikibase extension. This allows us to try out some more things and have the code stabilize more before we migrate over existing interwiki functionality.

Change-Id: I23c47c2c3909a1500350fb560a5f2ec654e2c37e
2012-10-12 17:47:44 +02:00