Skip to content

Commit

Permalink
MERGE: Merge branch '6.1' into 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Nov 22, 2021
2 parents 48ec6a7 + f91f4b5 commit 7b2bb98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Neos.Flow/Tests/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ protected function setUp(): void
$session->destroy(sprintf('assure that session is fresh, in setUp() method of functional test %s.', get_class($this) . '::' . $this->getName()));
}

$privilegeManager = $this->objectManager->get(\Neos\Flow\Security\Authorization\TestingPrivilegeManager::class);
$privilegeManager->reset();

if ($this->testableSecurityEnabled === true || static::$testablePersistenceEnabled === true) {
if (is_callable([self::$bootstrap->getObjectManager()->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class), 'compile'])) {
$result = self::$bootstrap->getObjectManager()->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class)->compile();
Expand All @@ -156,7 +159,6 @@ protected function setUp(): void
}
$this->persistenceManager = $this->objectManager->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class);
} else {
$privilegeManager = $this->objectManager->get(\Neos\Flow\Security\Authorization\TestingPrivilegeManager::class);
$privilegeManager->setOverrideDecision(true);
}

Expand Down

0 comments on commit 7b2bb98

Please sign in to comment.