Index: branches/fundraising/extensions/DonationInterface/tests/TestHelper.php |
— | — | @@ -48,8 +48,31 @@ |
49 | 49 | */ |
50 | 50 | require_once dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'gateway_common/gateway.adapter.php'; |
51 | 51 | |
| 52 | +/** |
| 53 | + * @see GlobalCollectAdapter |
| 54 | + */ |
| 55 | +require_once dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'globalcollect_gateway/globalcollect.adapter.php'; |
52 | 56 | |
| 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 | + |
53 | 69 | /* |
| 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 | +/* |
54 | 77 | * Load the user-defined test configuration file, if it exists; otherwise, load |
55 | 78 | * the default configuration. |
56 | 79 | */ |