i notice problem during KernelTest. I try test service contains SELECT (https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Database%21Connection.php/function/Connection%3A%3Aselect/8.2.x) and error occures…
Drupal\Tests\xxx\Kernel\Custom\AwardsTest::testResult Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.test94440564node' doesn't exist: SELECT node.nid AS nid FROM {node} node INNER JOIN {node__field_award_type} field_award_type ON field_award_type.entity_id = node.nid WHERE (type = :db_condition_placeholder_0) AND (field_award_type.field_award_type_value = :db_condition_placeholder_1) AND (field_award_type.langcode = :db_condition_placeholder_2) LIMIT 12 OFFSET 6; Array ( [:db_condition_placeholder_0] => award [:db_condition_placeholder_1] => dla_produktu [:db_condition_placeholder_2] => en )
When i test service containing only raw SQL everything works fine.
Are you know when tablename prefix is add? Maybe i need enable some modules? Any tips will be nice.