Index: trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | public function testXhtmlTransform( $input, $expected, $callback = false ) { |
12 | 12 | $t = Title::newFromText( 'Mobile' ); |
13 | 13 | $input = str_replace( "\r", '', $input ); // "yay" to Windows! |
14 | | - $mf = new MobileFormatter( "<div id='content'>$input</div>", $t, 'XHTML' ); |
| 14 | + $mf = new MobileFormatter( MobileFormatter::wrapHTML( $input ), $t, 'XHTML' ); |
15 | 15 | if ( $callback ) { |
16 | 16 | $callback( $mf ); |
17 | 17 | } |