/**
* @internal
*
* @covers \Shopware\Core\Profiling\Doctrine\ProfilingMiddleware
*/
class ProfilingMiddlewareTest extends TestCase
{ public function testData(): void
{ $configuration =
new Configuration();
$debugDataHolder =
new BacktraceDebugDataHolder(['default'
]);
$middleware =
new ProfilingMiddleware($debugDataHolder);
$configuration->
setMiddlewares([$middleware]);
$conn = DriverManager::
getConnection([ 'driver' => 'pdo_sqlite',
'memory' => true,
],
$configuration);
$conn->
executeQuery( <<<EOT
CREATE TABLE products (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
price REAL NOT NULL,
stock INTEGER NOT NULL
);