mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGIX Altering calls to methods that are not deprecated
This commit is contained in:
parent
8f96ea7c9c
commit
33de79e0e6
@ -94,8 +94,8 @@ class GridFieldPresenter extends ViewableData {
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function Name() {
|
||||
return $this->getGridField()->Name();
|
||||
public function getName() {
|
||||
return $this->getGridField()->getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ class NullableFieldTests extends SapphireTest {
|
||||
*/
|
||||
function testWithContent() {
|
||||
$a = new NullableField(new TextField("Field1", "Field 1", "abc"));
|
||||
$this->assertEquals("Field1", $a->Name());
|
||||
$this->assertEquals("Field1", $a->getName());
|
||||
$this->assertEquals("Field 1", $a->Title());
|
||||
$this->assertSame("abc", $a->Value());
|
||||
$this->assertSame("abc", $a->dataValue());
|
||||
@ -34,7 +34,7 @@ class NullableFieldTests extends SapphireTest {
|
||||
*/
|
||||
function testWithEmpty() {
|
||||
$a = new NullableField(new TextField("Field1", "Field 1", ""));
|
||||
$this->assertEquals("Field1", $a->Name());
|
||||
$this->assertEquals("Field1", $a->getName());
|
||||
$this->assertEquals("Field 1", $a->Title());
|
||||
$this->assertSame("", $a->Value());
|
||||
$this->assertSame("", $a->dataValue());
|
||||
@ -55,7 +55,7 @@ class NullableFieldTests extends SapphireTest {
|
||||
*/
|
||||
function testWithNull() {
|
||||
$a = new NullableField(new TextField("Field1", "Field 1", null));
|
||||
$this->assertEquals("Field1", $a->Name());
|
||||
$this->assertEquals("Field1", $a->getName());
|
||||
$this->assertEquals("Field 1", $a->Title());
|
||||
$this->assertSame(null, $a->Value());
|
||||
$this->assertSame(null, $a->dataValue());
|
||||
|
Loading…
Reference in New Issue
Block a user