Update testSearchFieldSchema to expect namespaced search fields

This commit is contained in:
Robbie Averill 2018-10-01 12:44:19 +02:00
parent c503dbd634
commit bfe2a7b7e6

View File

@ -114,8 +114,8 @@ class GridFieldFilterHeaderTest extends SapphireTest
$this->assertEquals('field/testfield/schema/SearchForm', $searchSchema->formSchemaUrl);
$this->assertEquals('Name', $searchSchema->name);
$this->assertEquals('Search "Teams"', $searchSchema->placeholder);
$this->assertEquals('test', $searchSchema->filters->Name);
$this->assertEquals('place', $searchSchema->filters->City);
$this->assertEquals('test', $searchSchema->filters->Search__Name);
$this->assertEquals('place', $searchSchema->filters->Search__City);
$this->assertEquals('testfield', $searchSchema->gridfield);
}
}