http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88772
Revision: 88772
Author: demon
Date: 2011-05-25 00:49:51 +0000 (Wed, 25 May 2011)
Log Message:
-----------
Workaround for duplicate key errors
Modified Paths:
--------------
trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php
Modified: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php
2011-05-25 00:44:46 UTC (rev 88771)
+++ trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php
2011-05-25 00:49:51 UTC (rev 88772)
@@ -152,11 +152,22 @@
'iw_api' => '',
'iw_wikiid' => '',
'iw_local' => 1 ),
- ) );
+ /**
+ * @todo Fixme! Why are we inserting duplicate data
here? Shouldn't
+ * need this IGNORE or shouldn't need the insert at all.
+ */
+ ), __METHOD__, array( 'IGNORE' ) );
# Update certain things in site_stats
- $this->db->insert( 'site_stats', array( 'ss_row_id' => 1,
'ss_images' => 2, 'ss_good_articles' => 1 ) );
+ $this->db->insert( 'site_stats',
+ array( 'ss_row_id' => 1, 'ss_images' => 2,
'ss_good_articles' => 1 ),
+ __METHOD__,
+ /**
+ * @todo Fixme! Same as above!
+ */
+ array( 'IGNORE' )
+ );
# Reinitialise the LocalisationCache to match the database state
Language::getLocalisationCache()->unloadAll();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs