mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
Travis fixes
This commit is contained in:
parent
ff3c8eb2bb
commit
70e83c0995
@ -213,8 +213,7 @@ class TagField extends DropdownField
|
||||
];
|
||||
if (!$this->getShouldLazyLoad()) {
|
||||
$schema['options'] = array_values($this->getOptions()->toNestedArray());
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($this->Value()) {
|
||||
$schema['value'] = $this->getOptions(true)->toNestedArray();
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ class TagFieldTest extends SapphireTest
|
||||
$request = $this->getNewRequest(array('term' => 'Tag'));
|
||||
|
||||
$this->assertEquals(
|
||||
'{"items":[{"id":"Tag1","text":"Tag1"}]}',
|
||||
'{"items":[{"Title":"Tag1","Value":"Tag1"}]}',
|
||||
$field->suggest($request)->getBody()
|
||||
);
|
||||
|
||||
@ -190,7 +190,7 @@ class TagFieldTest extends SapphireTest
|
||||
$request = $this->getNewRequest(array('term' => '222'));
|
||||
|
||||
$this->assertEquals(
|
||||
'{"items":[{"id":"222","text":"222"}]}',
|
||||
'{"items":[{"Title":"222","Value":"222"}]}',
|
||||
$field->suggest($request)->getBody()
|
||||
);
|
||||
|
||||
@ -200,7 +200,7 @@ class TagFieldTest extends SapphireTest
|
||||
$request = $this->getNewRequest(array('term' => 'TAG1'));
|
||||
|
||||
$this->assertEquals(
|
||||
'{"items":[{"id":"Tag1","text":"Tag1"}]}',
|
||||
'{"items":[{"Title":"Tag1","Value":"Tag1"}]}',
|
||||
$field->suggest($request)->getBody()
|
||||
);
|
||||
|
||||
@ -229,7 +229,7 @@ class TagFieldTest extends SapphireTest
|
||||
$request = $this->getNewRequest(array('term' => 'Tag'));
|
||||
|
||||
$this->assertEquals(
|
||||
'{"items":[{"id":"Tag1","text":"Tag1"}]}',
|
||||
'{"items":[{"Title":"Tag1","Value":"Tag1"}]}',
|
||||
$field->suggest($request)->getBody()
|
||||
);
|
||||
|
||||
@ -239,7 +239,7 @@ class TagFieldTest extends SapphireTest
|
||||
$request = $this->getNewRequest(array('term' => 'Tag1'));
|
||||
|
||||
$this->assertEquals(
|
||||
'{"items":[{"id":"Tag1","text":"Tag1"}]}',
|
||||
'{"items":[{"Title":"Tag1","Value":"Tag1"}]}',
|
||||
$field->suggest($request)->getBody()
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user