silverstripe-framework/tests/model/DBLocaleTest.php
Fred Condo d370423825 Clean up trailing ?> per coding standard
All sapphire but the lang directory
2012-02-12 12:40:16 -08:00

22 lines
479 B
PHP

<?php
/**
* @package sapphire
* @subpackage tests
*/
class DBLocaleTest extends SapphireTest {
function testNice() {
$l = DBField::create('DBLocale', 'de_DE');
$this->assertEquals($l->Nice(), 'German');
}
function testNiceNative() {
$l = DBField::create('DBLocale', 'de_DE');
$this->assertEquals($l->Nice(true), 'Deutsch');
}
function testNativeName() {
$l = DBField::create('DBLocale', 'de_DE');
$this->assertEquals($l->getNativeName(), 'Deutsch');
}
}