Spatie\SearchIndex\Test\Query\Algolia\SearchQueryTest::it_can_handle_numeric_filters_with_an_and_relation PHP Метод

it_can_handle_numeric_filters_with_an_and_relation() публичный Метод

    public function it_can_handle_numeric_filters_with_an_and_relation()
    {
        $name = 'myFilter';
        $myValues = [1, 2, 3];
        $logicalOperator = SearchQuery::LOGICAL_OPERATOR_AND;
        $this->query->withNumericFilter($name, $myValues, $logicalOperator);
        $this->assertEquals($this->expectedResult(['numericFilters' => ",{$name}={$myValues[0]},{$name}={$myValues[1]},{$name}={$myValues[2]}"]), $this->query->toArray());
    }