mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
33 lines
634 B
PHP
33 lines
634 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Application;
|
|
|
|
use Symfony\Component\Process\Process;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
class ConsoleAPITest extends \PhraseanetTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideConsoleNames
|
|
*/
|
|
public function testThatCommandsExitWithZero($console)
|
|
{
|
|
$process = new Process(__DIR__ . '/../../../../../bin/'.$console);
|
|
$process->run();
|
|
|
|
$this->assertSame(0, $process->getExitCode());
|
|
}
|
|
|
|
public function provideConsoleNames()
|
|
{
|
|
return [
|
|
['console'],
|
|
['setup'],
|
|
['developer'],
|
|
];
|
|
}
|
|
}
|