Lines Matching refs:tree
9 $tree = new TreeMock();
11 $this->assertTrue($tree->nodeExists('hi'));
12 $this->assertFalse($tree->nodeExists('hello'));
18 $tree = new TreeMock();
19 $tree->copy('hi','hi2');
21 $this->assertArrayHasKey('hi2', $tree->getNodeForPath('')->newDirectories);
22 $this->assertEquals('foobar', $tree->getNodeForPath('hi/file')->get());
23 …$this->assertEquals(array('test1'=>'value'), $tree->getNodeForPath('hi/file')->getProperties(array…
29 $tree = new TreeMock();
30 $tree->move('hi','hi2');
32 $this->assertEquals('hi2', $tree->getNodeForPath('hi')->getName());
33 $this->assertTrue($tree->getNodeForPath('hi')->isRenamed);
39 $tree = new TreeMock();
40 $tree->move('hi/sub','hi2');
42 $this->assertArrayHasKey('hi2', $tree->getNodeForPath('')->newDirectories);
43 $this->assertTrue($tree->getNodeForPath('hi/sub')->isDeleted);
49 $tree = new TreeMock();
50 $tree->delete('hi');
51 $this->assertTrue($tree->getNodeForPath('hi')->isDeleted);
57 $tree = new TreeMock();
58 $children = $tree->getChildren('');
66 $tree = new TreeMock();
67 $result = $tree->getMultipleNodes(['hi/sub', 'hi/file']);
77 $tree = new TreeMock();
78 $result = $tree->getMultipleNodes(['multi/1', 'multi/2']);