public function testGetNodeTypes() { $nodetypes = $this->om->getNodeTypes(); $this->assertInstanceOf('DOMDocument', $nodetypes); $nodetypes = $this->om->getNodeTypes(array('nt:folder', 'nt:file')); $this->assertInstanceOf('DOMDocument', $nodetypes); }
public function testGetNodeTypes() { $factory = new Factory(); $om = new ObjectManager($factory, $this->getTransportStub('/jcr:root'), $this->getSessionMock()); $nodetypes = $om->getNodeTypes(); $this->assertInstanceOf('DOMDocument', $nodetypes); $nodetypes = $om->getNodeTypes(array('nt:folder', 'nt:file')); $this->assertInstanceOf('DOMDocument', $nodetypes); }