eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\Gateway\DoctrineDatabaseTrashTest::testUntrashLocationNewParent PHP Method

testUntrashLocationNewParent() public method

    public function testUntrashLocationNewParent()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $handler->trashLocation(71);
        $handler->untrashLocation(71, 1);
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array('228', '1', '/1/228/')), $query->select('node_id', 'parent_node_id', 'path_string')->from('ezcontentobject_tree')->where($query->expr->in('contentobject_id', array(69))));
    }