testing search function

This commit is contained in:
Viktor Pedersen 2021-08-19 10:53:03 +02:00
parent 70ad97daf6
commit 6a177bd615

@ -29,7 +29,7 @@ class SearchPage extends Page {
return $out;
}
foreach(array('user', 'product') as $type) {
print('DEBUG === $type:');
print('=== DEBUG $type:');
print_r($type);
print(' ===<br>');
print('<br>');
@ -114,6 +114,10 @@ class SearchPage extends Page {
$res = $item->matches($mustIncludeTerm);
print('DEBUG VARDUMP $res: ');
var_dump($res);
print('<br>');
// $mustIncludeTermCheck = $item->matches($mustIncludeTerm); // matchar inte korrekt???
// if ($mustIncludeTermCheck) {
// $mustMatchCheck[] = array(True);