mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
20 lines
478 B
PHP
20 lines
478 B
PHP
<?php
|
|
namespace LinkTitles;
|
|
|
|
abstract class TestCase extends \MediaWikiTestCase {
|
|
protected function setUp() {
|
|
parent::setUp();
|
|
$this->insertPage( 'link target', 'This page serves as a link target' );
|
|
Extension::invalidateCache();
|
|
}
|
|
|
|
protected function tearDown() {
|
|
parent::tearDown();
|
|
}
|
|
|
|
protected function getPageText( \WikiPage $page ) {
|
|
$content = $page->getContent();
|
|
return $page->getContentHandler()->serializeContent( $content );
|
|
}
|
|
}
|