1
0
mirror of synced 2025-01-31 12:32:59 +03:00

#1252 DDC-3496 - minor test cleanups (avoiding private static method)

This commit is contained in:
Marco Pivetta 2015-01-18 00:03:49 +01:00
parent 60523d1b62
commit 29007e7d79

View File

@ -20,14 +20,6 @@ class NamingStrategyTest extends \Doctrine\Tests\OrmTestCase
return new DefaultNamingStrategy();
}
/**
* @return JoinColumnClassNamingStrategy
*/
static private function joinColumnClassNaming()
{
return new JoinColumnClassNamingStrategy();
}
/**
* @return UnderscoreNamingStrategy
*/
@ -171,28 +163,15 @@ class NamingStrategyTest extends \Doctrine\Tests\OrmTestCase
{
return array(
// DefaultNamingStrategy
array(self::defaultNaming(), 'someColumn_id',
'someColumn', null,
),
array(self::defaultNaming(), 'some_column_id',
'some_column', null,
),
array(self::defaultNaming(), 'someColumn_id', 'someColumn', null),
array(self::defaultNaming(), 'some_column_id', 'some_column', null),
// UnderscoreNamingStrategy
array(self::underscoreNamingLower(), 'some_column_id',
'someColumn', null,
),
array(self::underscoreNamingUpper(), 'SOME_COLUMN_ID',
'someColumn', null,
),
array(self::underscoreNamingLower(), 'some_column_id', 'someColumn', null),
array(self::underscoreNamingUpper(), 'SOME_COLUMN_ID', 'someColumn', null),
// JoinColumnClassNamingStrategy
array(self::joinColumnClassNaming(), 'classname_someColumn_id',
'someColumn', 'Some\ClassName',
),
array(self::joinColumnClassNaming(), 'classname_some_column_id',
'some_column', 'ClassName',
),
array(new JoinColumnClassNamingStrategy(), 'classname_someColumn_id', 'someColumn', 'Some\ClassName'),
array(new JoinColumnClassNamingStrategy(), 'classname_some_column_id', 'some_column', 'ClassName'),
);
}