mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-26 12:36:07 +02:00
22 lines
519 B
PHP
22 lines
519 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');
|
|
}
|
|
}
|