protected function setUp() { parent::setUp(); $this->locationService = $this->getMock('\\eZ\\Publish\\API\\Repository\\LocationService'); $this->listener = new ParentLocationsListener($this->locationService); }