Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Plugin/PluginTestCase.php
2013-07-16 16:01:17 +02:00

34 lines
768 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Plugin;
use Alchemy\Phrasea\Plugin\Schema\ManifestValidator;
class PluginTestCase extends \PhraseanetPHPUnitAbstract
{
protected function createManifestValidator()
{
return ManifestValidator::create(self::$DI['cli']);
}
protected function getPluginDirectory()
{
return __DIR__ . DIRECTORY_SEPARATOR . 'PluginFolder';
}
protected function createFilesystemMock()
{
return $this->getMock('Symfony\Component\Filesystem\Filesystem');
}
protected function getSchema()
{
return file_get_contents($this->getSchemaPath());
}
protected function getSchemaPath()
{
return __DIR__ . '/../../../../../lib/conf.d/plugin-schema.json';
}
}