mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
30 lines
730 B
PHP
30 lines
730 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Plugin\Management;
|
|
|
|
use Alchemy\Phrasea\Plugin\Management\PluginsExplorer;
|
|
use Alchemy\Tests\Phrasea\Plugin\PluginTestCase;
|
|
|
|
class PluginsExplorerTest extends PluginTestCase
|
|
{
|
|
public function testCount()
|
|
{
|
|
$explorer = new PluginsExplorer(__DIR__ . '/../Fixtures/PluginDir');
|
|
|
|
$this->assertCount(1, $explorer);
|
|
}
|
|
|
|
public function testGetIterator()
|
|
{
|
|
$explorer = new PluginsExplorer(__DIR__ . '/../Fixtures/PluginDir');
|
|
|
|
$dirs = array();
|
|
|
|
foreach ($explorer as $dir) {
|
|
$dirs[] = (string) realpath($dir);
|
|
}
|
|
|
|
$this->assertSame(array(realpath(__DIR__ . '/../Fixtures/PluginDir/TestPlugin')), $dirs);
|
|
}
|
|
}
|