Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | final class HasTaxonQueryBuilderSpec extends ObjectBehavior |
||
21 | { |
||
22 | function let(): void { |
||
|
|||
23 | $this->beConstructedWith('taxons_property'); |
||
24 | } |
||
25 | |||
26 | function it_is_initializable(): void |
||
27 | { |
||
28 | $this->shouldHaveType(HasTaxonQueryBuilder::class); |
||
29 | } |
||
30 | |||
31 | function it_implements_query_builder_interface(): void |
||
34 | } |
||
35 | |||
36 | function it_builds_query(): void |
||
37 | { |
||
38 | $this->buildQuery([ |
||
39 | 'taxons_property' => 'book', |
||
40 | ])->shouldBeAnInstanceOf(Terms::class); |
||
41 | } |
||
42 | |||
43 | function it_builds_returned_null_if_property_is_null(): void |
||
46 | } |
||
47 | } |
||
48 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.