24 $this->
object->addQueryParams([
'foo' =>
'bar',
'true' =>
'false']);
25 $this->assertEquals(
'foo=bar&true=false', $this->object->getQuery());
30 $this->
object->addQueryParams([
'foo' =>
'bar',
'true' =>
'false']);
31 $this->assertEquals(
'foo=bar&true=false', $this->object->getQuery(
true));
36 $this->
object->setQuery(
'foo=bar&true=false');
37 $this->assertEquals([
'foo' =>
'bar',
'true' =>
'false'], $this->object->getQueryParams());
42 $this->
object->setQuery(
null);
43 $this->assertEquals([], $this->object->getQueryParams());
48 $this->
object->setQueryParam(
'foo',
'bar');
49 $this->
object->setQueryParam(
'true',
'false');
50 $this->
object->setQueryParam(
'foo',
'bar');
51 $this->assertEquals([
'foo' =>
'bar',
'true' =>
'false'], $this->object->getQueryParams());
56 $this->
object->setQueryParams([
'foo' =>
'bar',
'true' =>
'false']);
57 $this->assertEquals([
'foo' =>
'bar',
'true' =>
'false'], $this->object->getQueryParams());
62 $this->
object->setData(
'query_params', [
'foo' =>
'bar',
'true' =>
'false']);
63 $this->
object->addQueryParams([
'foo' =>
'bar',
'true' =>
'false']);
64 $this->assertEquals([
'foo' =>
'bar',
'true' =>
'false'], $this->object->getQueryParams());
testAddQueryParamsIdempotent()