Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15183092
WikibaseDataModelTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
559 B
Referenced Files
None
Subscribers
None
WikibaseDataModelTest.php
View Options
<?php
// use the phpunit framework
use
PHPUnit
\
Framework
\
TestCase
;
use
wb
\
DataModel
;
/**
* Test Query class
*/
final
class
WikibaseDataModelTest
extends
TestCase
{
public
function
testSetLabel
(
)
{
$data
=
new
DataModel
(
)
;
$data
->
setLabelValue
(
'it'
,
'pizza'
)
;
$asd
=
$data
->
getLabelValue
(
'it'
)
;
$this
->
assertEquals
(
$asd
,
'pizza'
)
;
}
public
function
testSetDescription
(
)
{
$data
=
new
DataModel
(
)
;
$data
->
setDescriptionValue
(
'it'
,
'pizza'
)
;
$asd
=
$data
->
getDescriptionValue
(
'it'
)
;
$this
->
assertEquals
(
$asd
,
'pizza'
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 07:11 (44 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265283
Default Alt Text
WikibaseDataModelTest.php (559 B)
Attached To
Mode
R21 boz-mw: MediaWiki API client
Attached
Detach File
Event Timeline