/** * @test */ public function it_allows_hits_page_to_be_set() { $hitsPerPage = 8; $page = 2; $this->query->setHitsPerPage($hitsPerPage); $this->query->setPage($page); $this->assertEquals($this->expectedResult(['hitsPerPage' => $hitsPerPage, 'page' => $page]), $this->query->toArray()); }