public function setPreviewedLocation(Location $previewedLocation) { $this->previewedLocation = $previewedLocation; }
public function testPreviewedLocation() { $this->assertNull($this->previewHelper->getPreviewedLocation()); $location = $this->getMock('\\eZ\\Publish\\API\\Repository\\Values\\Content\\Location'); $this->previewHelper->setPreviewedLocation($location); $this->assertSame($location, $this->previewHelper->getPreviewedLocation()); }