Skip to content

Commit

Permalink
removed useless CommandTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed Oct 16, 2024
1 parent 6228b40 commit bb87a89
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 39 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# 2.x branch
## 2.13 branch
### 2.13.2
* no longer needs `php-tools`.
* no longer needs `php-tools`;
* removed useless `CommandTestCase`.

### 2.13.1
* updated for `php-tools` 1.10.0.
Expand Down
26 changes: 0 additions & 26 deletions src/TestSuite/CommandTestCase.php

This file was deleted.

7 changes: 5 additions & 2 deletions tests/TestCase/Command/DeleteAllCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/
namespace DatabaseBackup\Test\TestCase\Command;

use DatabaseBackup\TestSuite\CommandTestCase;
use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use DatabaseBackup\TestSuite\TestCase;

/**
* DeleteAllCommandTest class
*/
class DeleteAllCommandTest extends CommandTestCase
class DeleteAllCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @test
* @uses \DatabaseBackup\Command\DeleteAllCommand::execute()
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Command/ExportCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@

use Cake\Console\ConsoleIo;
use Cake\Console\Exception\StopException;
use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use Cake\Console\TestSuite\StubConsoleOutput;
use DatabaseBackup\Command\ExportCommand;
use DatabaseBackup\TestSuite\CommandTestCase;
use DatabaseBackup\TestSuite\TestCase;
use DatabaseBackup\Utility\BackupExport;

/**
* ExportCommandTest class
*/
class ExportCommandTest extends CommandTestCase
class ExportCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @var string
*/
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Command/ImportCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@

use Cake\Console\ConsoleIo;
use Cake\Console\Exception\StopException;
use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use Cake\Console\TestSuite\StubConsoleOutput;
use DatabaseBackup\Command\ImportCommand;
use DatabaseBackup\TestSuite\CommandTestCase;
use DatabaseBackup\TestSuite\TestCase;
use DatabaseBackup\Utility\BackupImport;

/**
* ImportCommandTest class
*/
class ImportCommandTest extends CommandTestCase
class ImportCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @var string
*/
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Command/IndexCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/
namespace DatabaseBackup\Test\TestCase\Command;

use DatabaseBackup\TestSuite\CommandTestCase;
use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use DatabaseBackup\TestSuite\TestCase;

/**
* IndexCommandTest class
*/
class IndexCommandTest extends CommandTestCase
class IndexCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @test
* @uses \DatabaseBackup\Command\IndexCommand::execute()
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Command/RotateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/
namespace DatabaseBackup\Test\TestCase\Command;

use DatabaseBackup\TestSuite\CommandTestCase;
use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use DatabaseBackup\TestSuite\TestCase;

/**
* RotateCommandTest class
*/
class RotateCommandTest extends CommandTestCase
class RotateCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @test
* @uses \DatabaseBackup\Command\RotateCommand::execute()
Expand Down
7 changes: 5 additions & 2 deletions tests/TestCase/Command/SendCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
*/
namespace DatabaseBackup\Test\TestCase\Command;

use Cake\Console\TestSuite\ConsoleIntegrationTestTrait;
use Cake\Core\Configure;
use DatabaseBackup\TestSuite\CommandTestCase;
use DatabaseBackup\TestSuite\TestCase;

/**
* SendCommandTest class
*/
class SendCommandTest extends CommandTestCase
class SendCommandTest extends TestCase
{
use ConsoleIntegrationTestTrait;

/**
* @test
* @uses \DatabaseBackup\Command\SendCommand::execute()
Expand Down

0 comments on commit bb87a89

Please sign in to comment.