Skip to content

Commit

Permalink
Fix QueriesConditionTest (#4113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Aug 11, 2021
1 parent 7e52488 commit 8fe81a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Tags/Concerns/QueriesConditionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public function query($query)
};

$query = $this->mock(Builder::class);
$query->shouldReceive('where')->with('somefield', 'somevalue');
$query->shouldReceive('where')->with('somefield', 'somevalue')->once();

$class->query($query);
}
Expand All @@ -550,7 +550,7 @@ public function when_the_value_is_an_array_of_augmentables_it_will_get_the_respe

public function __construct($values)
{
$this->params = new Parameters(['somefield:is_in' => $values]);
$this->params = new Parameters(['somefield:in' => $values]);
}

public function query($query)
Expand All @@ -560,7 +560,7 @@ public function query($query)
};

$query = $this->mock(Builder::class);
$query->shouldReceive('whereIn')->with('somefield', ['somevalue']);
$query->shouldReceive('whereIn')->with('somefield', ['somevalue'])->once();

$class->query($query);
}
Expand All @@ -583,7 +583,7 @@ public function when_the_value_is_a_collection_of_augmentables_it_will_get_the_r

public function __construct($values)
{
$this->params = new Parameters(['somefield:is_in' => $values]);
$this->params = new Parameters(['somefield:in' => $values]);
}

public function query($query)
Expand All @@ -593,7 +593,7 @@ public function query($query)
};

$query = $this->mock(Builder::class);
$query->shouldReceive('whereIn')->with('somefield', ['somevalue']);
$query->shouldReceive('whereIn')->with('somefield', ['somevalue'])->once();

$class->query($query);
}
Expand All @@ -620,7 +620,7 @@ public function query($query)
};

$query = $this->mock(Builder::class);
$query->shouldReceive('where')->with('somefield', 'foo');
$query->shouldReceive('where')->with('somefield', 'foo')->once();

$class->query($query);
}
Expand Down Expand Up @@ -649,7 +649,7 @@ public function query($query)
};

$query = $this->mock(Builder::class);
$query->shouldReceive('where')->with('somefield', 'somevalue');
$query->shouldReceive('where')->never();

$class->query($query);
}
Expand Down

0 comments on commit 8fe81a9

Please sign in to comment.