blob: 1d6d525ad5f56438e5b04560548cee8d27b2363b (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php
namespace SMW\Tests\MediaWiki;
use SMW\MediaWiki\PageCreator;
use SMW\Tests\Utils\Mock\MockTitle;
/**
* @covers \SMW\MediaWiki\PageCreator
* @group semantic-mediawiki
*
* @license GNU GPL v2+
* @since 2.0
*
* @author mwjames
*/
class PageCreatorTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
'\SMW\MediaWiki\PageCreator',
new PageCreator()
);
}
public function testCreatePage() {
$instance = new PageCreator();
$this->assertInstanceOf(
'\WikiPage',
$instance->createPage( MockTitle::buildMock( __METHOD__ ) )
);
}
public function testCreateFilePage() {
$instance = new PageCreator();
$this->assertInstanceOf(
'\WikiFilePage',
$instance->createFilePage( MockTitle::buildMock( __METHOD__ ) )
);
}
}
|