class ElasticsearchTriggerTraitTest extends TestCase
{ use ElasticsearchTriggerTrait;
use IntegrationTestBehaviour;
public function testTrigger(): void
{ $connection = self::
getContainer()->
get(Connection::
class);
$this->
triggerElasticsearchIndexing($connection);
static::
assertSame('["*"]',
$this->
fetchConfig($connection));
} public function fetchConfig(Connection
$connection): string
{ return $connection->
fetchOne('SELECT `value` FROM app_config WHERE `key` = "elasticsearch.indexing.entities"'
);
}}