blob: 92ec7344acb7493e76a4cf61618cf17bd32782d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/**
* External Store tests
*/
class ExternalStoreTest extends MediaWikiTestCase {
private $saved_wgExternalStores;
function setUp() {
global $wgExternalStores;
$this->saved_wgExternalStores = $wgExternalStores ;
}
function tearDown() {
global $wgExternalStores;
$wgExternalStores = $this->saved_wgExternalStores ;
}
function testExternalStoreDoesNotFetchIncorrectURL() {
global $wgExternalStores;
$wgExternalStores = true;
# Assertions for r68900
$this->assertFalse(
ExternalStore::fetchFromURL( 'http://' ) );
$this->assertFalse(
ExternalStore::fetchFromURL( 'ftp.wikimedia.org' ) );
$this->assertFalse(
ExternalStore::fetchFromURL( '/super.txt' ) );
}
}
|