public function testAppendToInsertInEmpty() { $node = new Node(['slug' => 'new1']); $this->assertTrue($node->appendTo(Node::findOne(27))->save()); $node = new NodeJoin(['slug' => 'new2']); $this->assertTrue($node->appendTo(NodeJoin::findOne(56))->save()); $dataSet = $this->getConnection()->createDataSet(['tree']); $expectedDataSet = new ArrayDataSet(require __DIR__ . '/data/test-append-to-insert-in-empty.php'); $this->assertDataSetsEqual($expectedDataSet, $dataSet); }