| my $mount_point = '/api/'; |
| $ENV{KALAMAR_API} = $mount_point; |
| my $t = Test::Mojo->new('Kalamar'); |
| my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'fixtures'); |
| my $fake_backend = $t->app->plugin( |
| $fixtures_path->child('fake_backend.pl') |
| $fake_backend->pattern->defaults->{app}->log($t->app->log); |
| ->text_is('title', 'KorAP: Find »baum« with Poliqarp') |
| ->element_exists('meta[name="DC.title"][content="KorAP: Find »baum« with Poliqarp"]') |
| ->element_exists('body[itemscope][itemtype="http://schema.org/SearchResultsPage"]') |
| ->text_is('#total-results', 51) |