Page MenuHomeWickedGov Phorge

CommentStoreCommentTest.php
No OneTemporary

Size
700 B
Referenced Files
None
Subscribers
None

CommentStoreCommentTest.php

<?php
use MediaWiki\CommentStore\CommentStoreComment;
use MediaWiki\Message\Message;
use PHPUnit\Framework\TestCase;
/**
* @covers \MediaWiki\CommentStore\CommentStoreComment
*
* @license GPL-2.0-or-later
*/
class CommentStoreCommentTest extends TestCase {
use MediaWikiCoversValidator;
public function testConstructorWithMessage() {
$message = new Message( 'test' );
$comment = new CommentStoreComment( null, 'test', $message );
$this->assertSame( $message, $comment->message );
}
public function testConstructorWithoutMessage() {
$text = '{{template|param}}';
$comment = new CommentStoreComment( null, $text );
$this->assertSame( $text, $comment->message->text() );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 15 2026, 18:58 (13 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/a2/489d170bd299d8c8f6992502d88b
Default Alt Text
CommentStoreCommentTest.php (700 B)

Event Timeline