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

testListVersionsForUser() public method

    public function testListVersionsForUser()
    {
        $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
        $gateway = $this->getDatabaseGateway();
        $res = $gateway->listVersionsForUser(14);
        $this->assertEquals(2, count($res));
        foreach ($res as $row) {
            $this->assertEquals(22, count($row));
        }
        $this->assertEquals(677, $res[0]['ezcontentobject_version_id']);
        $this->assertEquals(0, $res[0]['ezcontentobject_version_status']);
        $this->assertEquals(678, $res[1]['ezcontentobject_version_id']);
        $this->assertEquals(0, $res[1]['ezcontentobject_version_status']);
    }
DoctrineDatabaseTest