mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix unit test names, property and function visibility
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command;
|
||||
|
||||
use Alchemy\Phrasea\Command\CheckConfig;
|
||||
|
||||
class CheckConfigTest extends \PhraseanetPHPUnitAbstract
|
||||
class CheckConfigTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -6,14 +6,14 @@ use Alchemy\Phrasea\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class CommandTest extends \PHPUnit_Framework_TestCase
|
||||
class CommandTest extends \PhraseanetTestCase
|
||||
{
|
||||
/**
|
||||
* @var Command
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
protected function setUp()
|
||||
public function setUp()
|
||||
{
|
||||
$this->object = new AbstractCommandTester('name');
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Phrasea\Command\Compile;
|
||||
|
||||
use Alchemy\Phrasea\Command\Compile\Configuration;
|
||||
|
||||
class ConfigurationTest extends \PhraseanetPHPUnitAbstract
|
||||
class ConfigurationTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testExecute()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\BowerInstall;
|
||||
|
||||
class BowerInstallTest extends \PhraseanetPHPUnitAbstract
|
||||
class BowerInstallTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\ComposerInstall;
|
||||
|
||||
class ComposerInstallTest extends \PhraseanetPHPUnitAbstract
|
||||
class ComposerInstallTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\InstallAll;
|
||||
|
||||
class InstallAllTest extends \PhraseanetPHPUnitAbstract
|
||||
class InstallAllTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\BowerDriver;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class BowerDriverTest extends \PHPUnit_Framework_TestCase
|
||||
class BowerDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\ComposerDriver;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class ComposerDriverTest extends \PHPUnit_Framework_TestCase
|
||||
class ComposerDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\GruntDriver;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class GruntDriverTest extends \PHPUnit_Framework_TestCase
|
||||
class GruntDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\RecessDriver;
|
||||
|
||||
class RecessDriverTest extends \PHPUnit_Framework_TestCase
|
||||
class RecessDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testGetCreate()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Developper\Utils;
|
||||
use Alchemy\Phrasea\Command\Developer\Utils\UglifyJsDriver;
|
||||
use Symfony\Component\Process\PhpExecutableFinder;
|
||||
|
||||
class UglifyJsDriverTest extends \PHPUnit_Framework_TestCase
|
||||
class UglifyJsDriverTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command;
|
||||
|
||||
use Alchemy\Phrasea\Command\MailTest;
|
||||
|
||||
class MailTestTest extends \PhraseanetPHPUnitAbstract
|
||||
class MailTestTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testMailIsSent()
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Command\Plugin;
|
||||
|
||||
class PluginCommandTestCase extends \PhraseanetPHPUnitAbstract
|
||||
class PluginCommandTestCase extends \PhraseanetTestCase
|
||||
{
|
||||
protected function createTemporaryFilesystemMock()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command;
|
||||
|
||||
use Alchemy\Phrasea\Command\Setup\CheckEnvironment;
|
||||
|
||||
class CheckEnvironmentTest extends \PhraseanetPHPUnitAbstract
|
||||
class CheckEnvironmentTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command;
|
||||
|
||||
use Alchemy\Phrasea\Command\Setup\Install;
|
||||
|
||||
class InstallTest extends \PhraseanetPHPUnitAbstract
|
||||
class InstallTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Setup;
|
||||
|
||||
use Alchemy\Phrasea\Command\Setup\PluginsReset;
|
||||
|
||||
class PluginResetTest extends \PhraseanetPHPUnitAbstract
|
||||
class PluginResetTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRun()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Setup;
|
||||
|
||||
use Alchemy\Phrasea\Command\Setup\XSendFileMappingGenerator;
|
||||
|
||||
class XSendFileMappingGeneratorTest extends \PhraseanetPHPUnitAbstract
|
||||
class XSendFileMappingGeneratorTest extends \PhraseanetTestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider provideVariousOptions
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
|
||||
use Alchemy\Phrasea\Command\Task\SchedulerPauseTasks;
|
||||
|
||||
class SchedulerPauseTasksTest extends \PhraseanetPHPUnitAbstract
|
||||
class SchedulerPauseTasksTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
|
||||
use Alchemy\Phrasea\Command\Task\SchedulerResumeTasks;
|
||||
|
||||
class SchedulerResumeTasksTest extends \PhraseanetPHPUnitAbstract
|
||||
class SchedulerResumeTasksTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
|
||||
use Alchemy\Phrasea\Command\Task\SchedulerRun;
|
||||
|
||||
class SchedulerRunTest extends \PhraseanetPHPUnitAbstract
|
||||
class SchedulerRunTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
|
||||
use Alchemy\Phrasea\Command\Task\SchedulerState;
|
||||
|
||||
class SchedulerStateTest extends \PhraseanetPHPUnitAbstract
|
||||
class SchedulerStateTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
|
||||
use Alchemy\Phrasea\Command\Task\TaskList;
|
||||
|
||||
class TaskListTest extends \PhraseanetPHPUnitAbstract
|
||||
class TaskListTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
use Alchemy\Phrasea\Command\Task\TaskRun;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
|
||||
class TaskRunTest extends \PhraseanetPHPUnitAbstract
|
||||
class TaskRunTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
use Alchemy\Phrasea\Command\Task\TaskStart;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
|
||||
class TaskStartTest extends \PhraseanetPHPUnitAbstract
|
||||
class TaskStartTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
use Alchemy\Phrasea\Command\Task\TaskState;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
|
||||
class TaskStateTest extends \PhraseanetPHPUnitAbstract
|
||||
class TaskStateTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Command\Task;
|
||||
use Alchemy\Phrasea\Command\Task\TaskStop;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
|
||||
class TaskStopTest extends \PhraseanetPHPUnitAbstract
|
||||
class TaskStopTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRunWithoutProblems()
|
||||
{
|
||||
|
@@ -7,7 +7,7 @@ use Alchemy\Phrasea\Command\UpgradeDBDatas;
|
||||
use Alchemy\Phrasea\Command\Upgrade\Step31;
|
||||
use Alchemy\Phrasea\Command\Upgrade\Step35;
|
||||
|
||||
class UpgradeDBDatasTest extends \PHPUnit_Framework_TestCase
|
||||
class UpgradeDBDatasTest extends \PhraseanetTestCase
|
||||
{
|
||||
/**
|
||||
* @var UpgradeDBDatas
|
||||
@@ -17,7 +17,7 @@ class UpgradeDBDatasTest extends \PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @covers Alchemy\Phrasea\Command\UpgradeDBDatas::__construct
|
||||
*/
|
||||
protected function setUp()
|
||||
public function setUp()
|
||||
{
|
||||
$this->object = new UpgradeDBDatas('commandname');
|
||||
}
|
||||
@@ -33,7 +33,7 @@ class UpgradeDBDatasTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals([], $this->object->getUpgrades());
|
||||
|
||||
$upgrades = [
|
||||
new Step31(new Application('test'))
|
||||
new Step31($this->loadApp())
|
||||
];
|
||||
$this->object->setUpgrades($upgrades);
|
||||
$this->assertEquals($upgrades, $this->object->getUpgrades());
|
||||
@@ -46,12 +46,12 @@ class UpgradeDBDatasTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->assertEquals([], $this->object->getUpgrades());
|
||||
|
||||
$step31 = new Step31(new Application('test'));
|
||||
$step31 = new Step31($this->loadApp());
|
||||
$this->object->addUpgrade($step31);
|
||||
|
||||
$this->assertEquals([$step31], $this->object->getUpgrades());
|
||||
|
||||
$step35 = new Step35(new Application('test'));
|
||||
$step35 = new Step35($this->loadApp());
|
||||
$this->object->addUpgrade($step35);
|
||||
|
||||
$this->assertEquals([$step31, $step35], $this->object->getUpgrades());
|
||||
|
Reference in New Issue
Block a user