beConstructedWith($channelContext, 'channel_property'); } function it_is_initializable(): void { $this->shouldHaveType(HasChannelQueryBuilder::class); } function it_implements_query_builder_interface(): void { $this->shouldHaveType(QueryBuilderInterface::class); } function it_builds_query( ChannelContextInterface $channelContext, ChannelInterface $channel ): void { $channel->getCode()->willReturn('web'); $channelContext->getChannel()->willReturn($channel); $this->buildQuery([])->shouldBeAnInstanceOf(Terms::class); } }