public function setIndexOnNodeWithNonMatchingContextMaterializesNodeData() { $node = $this->setUpNodeWithNonMatchingContext(); $node->getNodeData()->expects($this->once())->method('setIndex')->with(5); $node->setIndex(5); }