public function SearchApiSortsTest::testFieldTypesSortable in Search API sorts 7
File
- ./
search_api_sorts.test, line 79
Class
- SearchApiSortsTest
- Class for testing search api sorts capabilities.
Code
public function testFieldTypesSortable() {
$this
->drupalGet('admin/config/search/search_api/index/testindex/sorts');
$this
->assertText('Date created', 'Date field types can be sorted.');
$this
->assertText('Date changed', 'Integer field types can be sorted.');
$this
->assertText('Content type', 'String field types can be sorted.');
$this
->assertText('Relevance', 'Decimal field types can be sorted.');
$this
->assertText('URL', 'URI field types can be sorted.');
$this
->assertText('Status', 'Boolean field types can be sorted.');
$this
->assertNoText('Edit URL', 'Fulltext field types are not sortable.');
}