assertSame( 'page_image', PageImages::PROP_NAME ); $this->assertSame( 'page_image_free', PageImages::PROP_NAME_FREE ); } public function testConstructor() { $pageImages = new PageImages(); $this->assertInstanceOf( 'PageImages', $pageImages ); } public function testGivenNonExistingPage_getPageImageReturnsFalse() { $title = Title::newFromText( wfRandomString() ); $title->resetArticleID( 0 ); $this->assertFalse( PageImages::getPageImage( $title ) ); } public function testGetPropName() { $this->assertSame( 'page_image', PageImages::getPropName( false ) ); $this->assertSame( 'page_image_free', PageImages::getPropName( true ) ); } }