mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
34 lines
768 B
PHP
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';
|
|
}
|
|
}
|