Index: trunk/phase3/maintenance/tests/LocalFileTest.php |
— | — | @@ -92,6 +92,11 @@ |
93 | 93 | $this->assertEquals( '/testurl/Test%21', $this->file_hl0->getUrl() ); |
94 | 94 | $this->assertEquals( '/testurl/a/a2/Test%21', $this->file_hl2->getUrl() ); |
95 | 95 | } |
| 96 | + |
| 97 | + function testWfLocalFile() { |
| 98 | + $file = wfLocalFile( "File:Some_file_that_probably_doesn't exist.png" ); |
| 99 | + $this->assertThat( $file, $this->isInstanceOf( 'LocalFile' ), 'wfLocalFile() returns LocalFile for valid Titles' ); |
| 100 | + } |
96 | 101 | } |
97 | 102 | |
98 | 103 | |