beConstructedWith('taxons_property'); } function it_is_initializable(): void { $this->shouldHaveType(HasTaxonQueryBuilder::class); } function it_implements_query_builder_interface(): void { $this->shouldHaveType(QueryBuilderInterface::class); } function it_builds_query(): void { $this->buildQuery([ 'taxons_property' => 'book', ])->shouldBeAnInstanceOf(Terms::class); } function it_builds_returned_null_if_property_is_null(): void { $this->buildQuery(['taxons_property' => null])->shouldBeEqualTo(null); } }