Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/Search20Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ public function testSearchResultForKeyboardsBcp47Tag()
$json = $this->s->GetSearchMatches(null, 'sencoten', 1, 1);
$json = json_decode(json_encode($json));
$this->schema->in($json);
$this->assertEquals(3, $json->context->totalRows);
$this->assertEquals(2, $json->context->totalRows);
$this->assertEquals('fv_sencoten', $json->keyboards[0]->id);
$this->assertEquals('language', $json->keyboards[0]->match->type);
$this->assertEquals('str-latn', $json->keyboards[0]->match->tag);
// is now "languages": {"str": {}}
//$this->assertEquals('language', $json->keyboards[0]->match->type);
//$this->assertEquals('str-latn', $json->keyboards[0]->match->tag);
}

public function testSearchByLanguageName()
Expand Down
Loading