MediaWiki REL1_33
CommentStoreCommentTest.php
Go to the documentation of this file.
1<?php
2
3use PHPUnit\Framework\TestCase;
4
10class CommentStoreCommentTest extends TestCase {
11
12 public function testConstructorWithMessage() {
13 $message = new Message( 'test' );
14 $comment = new CommentStoreComment( null, 'test', $message );
15
16 $this->assertSame( $message, $comment->message );
17 }
18
20 $text = '{{template|param}}';
21 $comment = new CommentStoreComment( null, $text );
22
23 $this->assertSame( $text, $comment->message->text() );
24 }
25
26}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
CommentStoreComment represents a comment stored by CommentStore.
The Message class provides methods which fulfil two basic services:
Definition Message.php:160