Page MenuHomeWickedGov Phorge

CommentStoreCommentTest.php
No OneTemporary

Size
669 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 {
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
Tue, Aug 18, 18:38 (3 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/aa/2f6a76c5eff1ab9e6e9d7d8292fd
Default Alt Text
CommentStoreCommentTest.php (669 B)

Event Timeline