public function testSet() { $grid = $this->createGridMock(); $grid->expects($this->once())->method('getResource')->will($this->returnValue($resource = $this->createResourceMock())); $resource->expects($this->once())->method('getName')->will($this->returnValue($name = 'name')); $this->storage->expects($this->once())->method('offsetSet')->with($this->identicalTo($key = '_lug_grid_filter_' . $name), $this->identicalTo($filters = ['foo' => 'bar'])); $this->manager->set($grid, $filters); }