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

testUpdateSubtreeModificationTime() public method

    public function testUpdateSubtreeModificationTime()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $time = time();
        $handler->updateSubtreeModificationTime('/1/2/69/');
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array('/1/'), array('/1/2/'), array('/1/2/69/')), $query->select('path_string')->from('ezcontentobject_tree')->where($query->expr->gte('modified_subnode', $time))->orderBy('path_string'));
    }