function it_can_make_node_of_type(Node $nodeType, NodeFinder $nodeFinder) { $nodeType->setId($id = 'F4pwOfe4eAaTJxFf483ZsQnFL3ALqXjl')->shouldBeCalled(); $nodeType->incrementDepth()->willReturn(true); $nodeType->getId()->shouldBeCalled(); $nodeType->setParentId(null)->shouldBeCalled(); $nodeType->setMatch([])->shouldBeCalled(); $nodeType->setOffset(0)->shouldBeCalled(); $nodeType->setDepth(1)->shouldBeCalled(); $nodeType->setup()->shouldBeCalled(); $nodeType->getItemAliasFromRawAttributes()->shouldBeCalled()->willReturn('book'); $nodeType->setItemAlias('book')->shouldBeCalled(); $this->make($nodeType, $match = [], $parent = null, $offset = 0, $depth = 0, $id)->shouldHaveType('Anomaly\\Lexicon\\Test\\Stub\\Node\\Node'); }