Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class HasChannelQueryBuilderSpec extends ObjectBehavior |
||
23 | { |
||
24 | function let(ChannelContextInterface $channelContext): void |
||
25 | { |
||
26 | $this->beConstructedWith($channelContext, 'channel_property'); |
||
27 | } |
||
28 | |||
29 | function it_is_initializable(): void |
||
30 | { |
||
31 | $this->shouldHaveType(HasChannelQueryBuilder::class); |
||
32 | } |
||
33 | |||
34 | function it_implements_query_builder_interface(): void |
||
35 | { |
||
36 | $this->shouldHaveType(QueryBuilderInterface::class); |
||
37 | } |
||
38 | |||
39 | function it_builds_query( |
||
40 | ChannelContextInterface $channelContext, |
||
41 | ChannelInterface $channel |
||
42 | ): void { |
||
43 | $channel->getCode()->willReturn('web'); |
||
44 | |||
45 | $channelContext->getChannel()->willReturn($channel); |
||
46 | |||
47 | $this->buildQuery([])->shouldBeAnInstanceOf(Terms::class); |
||
48 | } |
||
50 |