public function testShiftLevel() { $this->initTreeWithScope(); \NestedSetTable10Query::shiftLevel($delta = 1, $first = 7, $last = 12, $scope = 1); \Map\NestedSetTable10TableMap::clearInstancePool(); $expected = ['t1' => [1, 14, 0], 't2' => [2, 3, 1], 't3' => [4, 13, 1], 't4' => [5, 6, 2], 't5' => [7, 12, 3], 't6' => [8, 9, 4], 't7' => [10, 11, 4]]; $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'shiftLevel can shift level with a scope'); $expected = ['t8' => [1, 6, 0], 't9' => [2, 3, 1], 't10' => [4, 5, 1]]; $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'shiftLevel does not shift anything out of the scope'); }