Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix QueriesConditionTest #4113

Merged
merged 2 commits into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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