Pass the right type of argument

parent f2a0ab7f
...@@ -348,14 +348,14 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase ...@@ -348,14 +348,14 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
self::assertEquals( self::assertEquals(
'CONSTRAINT pk PRIMARY KEY CLUSTERED (a, b)', 'CONSTRAINT pk PRIMARY KEY CLUSTERED (a, b)',
$this->platform->getPrimaryKeyDeclarationSQL( $this->platform->getPrimaryKeyDeclarationSQL(
new Index(null, ['a', 'b'], true, true, ['clustered']), new Index('', ['a', 'b'], true, true, ['clustered']),
'pk' 'pk'
) )
); );
self::assertEquals( self::assertEquals(
'PRIMARY KEY (a, b)', 'PRIMARY KEY (a, b)',
$this->platform->getPrimaryKeyDeclarationSQL( $this->platform->getPrimaryKeyDeclarationSQL(
new Index(null, ['a', 'b'], true, true) new Index('', ['a', 'b'], true, true)
) )
); );
} }
...@@ -391,12 +391,12 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase ...@@ -391,12 +391,12 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
'CONSTRAINT unique_constraint UNIQUE CLUSTERED (a, b)', 'CONSTRAINT unique_constraint UNIQUE CLUSTERED (a, b)',
$this->platform->getUniqueConstraintDeclarationSQL( $this->platform->getUniqueConstraintDeclarationSQL(
'unique_constraint', 'unique_constraint',
new Index(null, ['a', 'b'], true, false, ['clustered']) new Index('', ['a', 'b'], true, false, ['clustered'])
) )
); );
self::assertEquals( self::assertEquals(
'UNIQUE (a, b)', 'UNIQUE (a, b)',
$this->platform->getUniqueConstraintDeclarationSQL(null, new Index(null, ['a', 'b'], true, false)) $this->platform->getUniqueConstraintDeclarationSQL('', new Index('', ['a', 'b'], true, false))
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment