public function iShouldGetTheListOfAllAvailableNodeTypesAsDeniedNodeTypesForThisNodeFromTheNodeAuthorizationService()
{
if ($this->isolated === true) {
$this->callStepInSubProcess(__METHOD__);
} else {
$availableNodeTypes = $this->nodeTypeManager->getNodeTypes();
$deniedNodeTypeNames = $this->nodeAuthorizationService->getNodeTypeNamesDeniedForCreation($this->currentNodes[0]);
if (count($availableNodeTypes) !== count($deniedNodeTypeNames)) {
Assert::fail('The node authorization service did not return the expected amount of node type names! Got: ' . implode(', ', $deniedNodeTypeNames));
}
foreach ($availableNodeTypes as $nodeType) {
if (in_array($nodeType, $deniedNodeTypeNames) === false) {
Assert::fail('The following node type name has not been returned by the node authorization service: ' . $nodeType);
}
}
}
}