From: Platonides Date: Tue, 27 Dec 2011 20:48:06 +0000 (+0000) Subject: Need to set mDataLoaded so that this works without a db X-Git-Tag: 1.31.0-rc.0~25709 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=31b34304a1d18d466cf49e20d6c2a3c0980b377a;p=lhc%2Fweb%2Fwiklou.git Need to set mDataLoaded so that this works without a db --- diff --git a/tests/phpunit/includes/ArticleTest.php b/tests/phpunit/includes/ArticleTest.php index cc64d9c491..846d2b86c2 100644 --- a/tests/phpunit/includes/ArticleTest.php +++ b/tests/phpunit/includes/ArticleTest.php @@ -27,7 +27,6 @@ class ArticleTest extends MediaWikiTestCase { * @depends testImplementsGetMagic */ function testImplementsSetMagic() { - $this->article->mLatest = 2; $this->assertEquals( 2, $this->article->mLatest, "Article __set magic" ); } @@ -37,6 +36,7 @@ class ArticleTest extends MediaWikiTestCase { */ function testImplementsCallMagic() { $this->article->mLatest = 33; + $this->article->mDataLoaded = true; $this->assertEquals( 33, $this->article->getLatest(), "Article __call magic" ); }