public function testInsertAsFirstChildOf()
 {
     $this->assertTrue(method_exists('\\Propel\\Tests\\Bookstore\\Behavior\\Table10', 'insertAsFirstChildOf'), 'nested_set adds a insertAsFirstChildOf() method');
     $fixtures = $this->initTreeWithScope();
     /* Tree used for tests
         Scope 1
         t1
         |  \
         t2 t3
            |  \
            t4 t5
               |  \
               t6 t7
         Scope 2
         t8
         | \
         t9 t10
        */
     $t11 = new PublicTable10();
     $t11->setTitle('t11');
     $t11->insertAsFirstChildOf($fixtures[2]);
     // first child of t3
     $this->assertEquals(1, $t11->getScopeValue(), 'insertAsFirstChildOf() sets the scope value correctly');
     $t11->save();
     $expected = array('t1' => array(1, 16, 0), 't2' => array(2, 3, 1), 't3' => array(4, 15, 1), 't4' => array(7, 8, 2), 't5' => array(9, 14, 2), 't6' => array(10, 11, 3), 't7' => array(12, 13, 3), 't11' => array(5, 6, 2));
     $this->assertEquals($expected, $this->dumpTreeWithScope(1), 'insertAsFirstChildOf() shifts the other nodes correctly');
     $expected = array('t8' => array(1, 6, 0), 't9' => array(2, 3, 1), 't10' => array(4, 5, 1));
     $this->assertEquals($expected, $this->dumpTreeWithScope(2), 'insertAsFirstChildOf() does not shift anything out of the scope');
 }