Files
Phraseanet/tests/classes/module/console/aboutAuthorsTest.php
Aina Sitraka de120780f6 PHRAS-3826 ci test (#4300)
switching docker build image and unit test run on github action
2023-04-29 22:13:08 +02:00

37 lines
932 B
PHP

<?php
use Alchemy\Phrasea\CLI;
use Symfony\Component\Console\Tester\CommandTester;
/**
* @group functional
* @group legacy
*/
class module_console_aboutAuthorsTest extends \PhraseanetTestCase
{
/**
* @var module_console_aboutAuthors
*/
protected $object;
/**
* @covers module_console_aboutAuthors::execute
*/
public function testExecute()
{
$application = new CLI('test', null, 'test');
$application->command(new module_console_aboutAuthors('about:authors'));
$command = $application['console']->find('about:authors');
// TODO: on builder mode
// $commandTester = new CommandTester($command);
// $commandTester->execute(['command' => $command->getName()]);
// $this->assertEquals(
// trim(file_get_contents($application['root.path'] .'/AUTHORS'))
// , trim($commandTester->getDisplay())
// );
}
}