/** * @test * @group rendering * @group small * @group dev */ public function test_getRootNode_success() { // // ARRANGE // // Prepare module info storage $moduleInfo = $this->getModuleInfo(); $moduleInfoStorage = new ArrayBasedModuleInfoStorage($moduleInfo); $content = $this->getContent(); // // ACT // $nodeFactory = new Test1NodeFactory($moduleInfoStorage); $nodeTree = new NodeTree($content, $nodeFactory); // // ASSERT // $rootNode = $nodeTree->getRootNode(); $this->assertEquals($content['id'], $rootNode->getUnitId()); }