public function iExpectToHaveUnpublishedNodesForTheFollowingContext($nodeCount, $table) { if ($this->isolated === true) { $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'integer', escapeshellarg($nodeCount), escapeshellarg(TableNode::class), escapeshellarg(json_encode($table->getHash())))); } else { $rows = $table->getHash(); $context = $this->getContextForProperties($rows[0]); $publishingService = $this->getPublishingService(); Assert::assertEquals((int) $nodeCount, count($publishingService->getUnpublishedNodes($context->getWorkspace()))); } }