r99239 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99238‎ | r99239 | r99240 >
Date:19:21, 7 October 2011
Author:jpostlethwaite
Status:ok
Tags:fundraising 
Comment:
Added require statements for classes that will be tested.
Modified paths:
  • /branches/fundraising/extensions/DonationInterface/tests/TestHelper.php (modified) (history)

Diff [purge]

Index: branches/fundraising/extensions/DonationInterface/tests/TestHelper.php
@@ -48,8 +48,31 @@
4949 */
5050 require_once dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'gateway_common/gateway.adapter.php';
5151
 52+/**
 53+ * @see GlobalCollectAdapter
 54+ */
 55+require_once dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'globalcollect_gateway/globalcollect.adapter.php';
5256
 57+/**
 58+ * @see ContributionTrackingProcessor
 59+ */
 60+require_once dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'ContributionTracking/ContributionTracking.processor.php';
 61+
 62+/**
 63+ * TESTS_WEB_ROOT
 64+ *
 65+ * This is similar to $IP, the installation path in Mediawiki.
 66+ */
 67+define( 'TESTS_WEB_ROOT', dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) );
 68+
5369 /*
 70+ * Unit tests are run from the command line.
 71+ *
 72+ * It should be confirmed that this will not affect other tests such as Selenium.
 73+ */
 74+$wgCommandLineMode = true;
 75+
 76+/*
5477 * Load the user-defined test configuration file, if it exists; otherwise, load
5578 * the default configuration.
5679 */

Status & tagging log