#1252 DDC-3496 - minor test cleanups (avoiding private static method)
This commit is contained in:
parent
60523d1b62
commit
29007e7d79
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user