Index: trunk/phase3/tests/phpunit/includes/ArticleTest.php |
— | — | @@ -50,14 +50,17 @@ |
51 | 51 | "Article get/set magic on update to new field" ); |
52 | 52 | } |
53 | 53 | |
| 54 | + /** |
| 55 | + * Checks for the existence of the backwards compatibility static functions (forwarders to WikiPage class) |
| 56 | + */ |
54 | 57 | function testStaticFunctions() { |
55 | 58 | $this->assertEquals( WikiPage::selectFields(), Article::selectFields(), |
56 | 59 | "Article static functions" ); |
57 | | - $this->assertEquals( null, Article::onArticleCreate( $this->title ), |
| 60 | + $this->assertEquals( true, is_callable( "Article::onArticleCreate" ), |
58 | 61 | "Article static functions" ); |
59 | | - $this->assertEquals( null, Article::onArticleDelete( $this->title ), |
| 62 | + $this->assertEquals( true, is_callable( "Article::onArticleDelete" ), |
60 | 63 | "Article static functions" ); |
61 | | - $this->assertEquals( null, ImagePage::onArticleEdit( $this->title ), |
| 64 | + $this->assertEquals( true, is_callable( "ImagePage::onArticleEdit" ), |
62 | 65 | "Article static functions" ); |
63 | 66 | $this->assertTrue( is_string( CategoryPage::getAutosummary( '', '', 0 ) ), |
64 | 67 | "Article static functions" ); |