Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4104746
CommentStoreCommentTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
669 B
Referenced Files
None
Subscribers
None
CommentStoreCommentTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment