2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\i18n\Tests\i18nTextCollectorTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2017-01-18 04:58:48 +01:00
|
|
|
use SilverStripe\i18n\TextCollection\i18nTextCollector;
|
2016-10-14 03:30:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Assist with testing of specific protected methods
|
|
|
|
*/
|
|
|
|
class Collector extends i18nTextCollector implements TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
public function getModules_Test($directory)
|
|
|
|
{
|
|
|
|
return $this->getModules($directory);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function resolveDuplicateConflicts_Test($entitiesByModule)
|
|
|
|
{
|
|
|
|
return $this->resolveDuplicateConflicts($entitiesByModule);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFileListForModule_Test($module)
|
|
|
|
{
|
|
|
|
return $this->getFileListForModule($module);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getConflicts_Test($entitiesByModule)
|
|
|
|
{
|
|
|
|
return $this->getConflicts($entitiesByModule);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function findModuleForClass_Test($class)
|
|
|
|
{
|
|
|
|
return $this->findModuleForClass($class);
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|