public function testHasBypassRole()
 {
     $token = new AnonymousToken('', '');
     $this->sc->shouldReceive('getToken')->andReturn($token);
     $this->sc->shouldReceive('isGranted')->once()->with($this->role)->andReturn(true);
     $this->adm->shouldNotReceive('decide');
     $this->assertTrue($this->pwfc->isGranted(PublishWorkflowChecker::VIEW_ATTRIBUTE, $this->doc));
 }