tests/IResearch/IResearchAnalyzerFeature-test.cpp
// no collection read access (vocbase read access, no user)
no collection read access (vocbase read access, no user)
no collection read access ( vocbase read access no user )
TEST_F(IResearchAnalyzerFeatureTest, test_auth_vocbase_none_collection_read_no_user) {
  TRI_vocbase_t vocbase(TRI_vocbase_type_e::TRI_VOCBASE_TYPE_NORMAL, testDBInfo(server.server()));
  userSetAccessLevel(arangodb::auth::Level::NONE, arangodb::auth::Level::RO);
  auto ctxt = getLoggedInContext();
  arangodb::ExecContextScope execContextScope(ctxt.get());
  EXPECT_FALSE(
      arangodb::iresearch::IResearchAnalyzerFeature::canUse(vocbase, arangodb::auth::Level::RO));
}
TEST_F ( IResearchAnalyzerFeatureTest , test_auth_vocbase_none_collection_read_no_user ) { TRI_vocbase_t vocbase ( TRI_vocbase_type_e :: TRI_VOCBASE_TYPE_NORMAL , testDBInfo ( server . server ( ) ) ) ; userSetAccessLevel ( arangodb :: auth :: Level :: NONE , arangodb :: auth :: Level :: RO ) ; auto ctxt = getLoggedInContext ( ) ; arangodb :: ExecContextScope execContextScope ( ctxt . get ( ) ) ; EXPECT_FALSE ( arangodb :: iresearch :: IResearchAnalyzerFeature :: canUse ( vocbase , arangodb :: auth :: Level :: RO ) ) ; }
no collection read access (vocbase read access, no user)
no collection read access ( vocbase read access no user )