Changeset View
Changeset View
Standalone View
Standalone View
phpunit/WikibaseDataModelTest.php
- This file was added.
<?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' ); | |||||
} | |||||
} |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register