eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\Gateway\DoctrineDatabaseTest::testUpdatePathIdentificationString PHP Method

testUpdatePathIdentificationString() public method

Test for the updatePathIdentificationString() method.
public testUpdatePathIdentificationString ( $locationId, $parentLocationId, $text, $expected )
    public function testUpdatePathIdentificationString($locationId, $parentLocationId, $text, $expected)
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $gateway = $this->getLocationGateway();
        $gateway->updatePathIdentificationString($locationId, $parentLocationId, $text);
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array($expected)), $query->select('path_identification_string')->from('ezcontentobject_tree')->where($query->expr->eq('node_id', $locationId)));
    }