silverstripe-framework/tests/model/DBLocaleTest.php
2014-08-19 09:17:15 +12:00

22 lines
517 B
PHP

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