/**
* @internal
*
* @covers \Shopware\Core\Content\Product\DataAbstractionLayer\CheapestPrice\CheapestPriceAccessorBuilder
*/
class CheapestPriceAccessorBuilderTest extends TestCase
{ protected CheapestPriceAccessorBuilder
$builder;
protected function setUp(): void
{ $this->builder =
new CheapestPriceAccessorBuilder( 1,
new NullLogger() );
} public function testWithPriceAccessor(): void
{ $priceField =
new CheapestPriceField('cheapest_price_accessor', 'cheapest_price_accessor'
);
$context = Context::
createDefaultContext();
$sql =
$this->builder->
buildAccessor('product',
$priceField,
$context, 'cheapestPrice'
);