/**
* @dataProvider providerTotalCount
*/
public function testDifferentTotalCount(mixed
$totalCountMode, int
$expectedMode): void
{ $payload =
[ 'total-count-mode' =>
$totalCountMode,
];
$criteria =
$this->requestCriteriaBuilder->
fromArray($payload,
new Criteria(),
$this->staticDefinitionRegistry->
get(ProductDefinition::
class), Context::
createDefaultContext());
static::
assertSame($expectedMode,
$criteria->
getTotalCountMode());
} /**
* @return iterable<array{string, int}>
*/
public static function providerTotalCount(): iterable
{ yield [ '0',
Criteria::TOTAL_COUNT_MODE_NONE,
];