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

testUpdateType() public method

public testUpdateType ( $fieldName, $expectedValue )
    public function testUpdateType($fieldName, $expectedValue)
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $updateStruct = $this->getTypeUpdateFixture();
        $gateway->updateType(1, 0, $updateStruct);
        $this->assertQueryResult(array(array($fieldName => $expectedValue)), $this->getDatabaseHandler()->createSelectQuery()->select($fieldName)->from('ezcontentclass')->where('id = 1 AND version = 0'), "Incorrect value stored for '{$fieldName}'.");
    }