Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeOperationsTrait::theUnpublishedNodeCountInWorkspaceShouldBe PHP Method

theUnpublishedNodeCountInWorkspaceShouldBe() public method

public theUnpublishedNodeCountInWorkspaceShouldBe ( $workspaceName, $count )
    public function theUnpublishedNodeCountInWorkspaceShouldBe($workspaceName, $count)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($workspaceName), 'integer', escapeshellarg($count)));
        } else {
            $workspaceRepository = $this->getObjectManager()->get(\Neos\ContentRepository\Domain\Repository\WorkspaceRepository::class);
            $workspace = $workspaceRepository->findOneByName($workspaceName);
            $publishingService = $this->getObjectManager()->get(\Neos\ContentRepository\Domain\Service\PublishingServiceInterface::class);
            $unpublishedNodesCount = $publishingService->getUnpublishedNodesCount($workspace);
            Assert::assertEquals($count, $unpublishedNodesCount);
        }
    }