Example #1
0
 public function testShouldGetOriginalGETData()
 {
     $_GET = ['city' => 'city a', 'page' => 1];
     $this->object->set('add', ['city' => 'city b']);
     $this->assertEquals(['city' => ['=' => ['city a', 'city b']]], $this->object->filter());
     $this->assertTrue($this->object->paginate());
     $this->object->refresh();
     $this->assertEquals(['city' => ['=' => ['city a']]], $this->object->filter());
     $this->object->refresh(['city' => 'city a;city b']);
     $this->assertEquals(['city' => ['=' => ['city a', 'city b']]], $this->object->filter());
     $this->assertFalse($this->object->paginate());
 }