mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix unit tests
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\GruntDriver;
|
||||
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class GruntDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
$driver = GruntDriver::create();
|
||||
$app = self::$DI['app'];
|
||||
$app->register(new CLIDriversServiceProvider());
|
||||
$driver = GruntDriver::create(['grunt.binaries' => $app['driver.binary-finder']('grunt', 'grunt_binary')]);
|
||||
$this->assertInstanceOf('Alchemy\Phrasea\Command\Developer\Utils\GruntDriver', $driver);
|
||||
$this->assertEquals('grunt', $driver->getName());
|
||||
}
|
||||
|
@@ -3,13 +3,16 @@
|
||||
namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\UglifyJsDriver;
|
||||
use Alchemy\Phrasea\Core\CLIProvider\CLIDriversServiceProvider;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class UglifyJsDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
$driver = UglifyJsDriver::create();
|
||||
$app = self::$DI['app'];
|
||||
$app->register(new CLIDriversServiceProvider());
|
||||
$driver = UglifyJsDriver::create(['uglifyjs.binaries' => $app['driver.binary-finder']('uglifyjs', 'uglifyjs_binary')]);
|
||||
$this->assertInstanceOf('Alchemy\Phrasea\Command\Developer\Utils\UglifyJsDriver', $driver);
|
||||
$this->assertEquals('uglifyjs', $driver->getName());
|
||||
}
|
||||
|
Reference in New Issue
Block a user