['nb_conversions' => 1]]); $comparisonRows = [ '' => [ 'month' => [ '2026-03-01,2026-03-31' => $expectedRow, ], ], ]; $reflection = new \ReflectionClass(Sparklines::class); $sparklines = $reflection->newInstanceWithoutConstructor(); $method = $reflection->getMethod('findComparisonRow'); $method->setAccessible(true); $actualRow = $method->invoke($sparklines, $comparisonRows, '', 'month', '2026-03-01'); $this->assertSame($expectedRow, $actualRow); } }