/** * @@Guest */ public function testBeforeControllerWithGuestNotation() { $this->reflector->reflect(__CLASS__, __FUNCTION__); $this->middleware->beforeController(__CLASS__, __FUNCTION__); }
/** * @PublicPage * * Sharing needs to be enabled on public pages * * @expectedException \OCA\Gallery\Middleware\CheckException */ public function testBeforeControllerWithSharingDisabled() { $this->mockSharingConfigTo('no'); $this->reflector->reflect(__CLASS__, __FUNCTION__); $this->middleware->beforeController(__CLASS__, __FUNCTION__); }