Skip to content

Commit

Permalink
Restructure feature tests by driver
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Jun 27, 2024
1 parent c78f78c commit 865cc6c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Commands;
namespace Payavel\Checkout\Tests\Feature\Console\Config;

use Illuminate\Support\Str;
use Payavel\Checkout\Tests\Feature\Console\TestCheckoutInstallCommand;
use Payavel\Orchestration\Contracts\Accountable;
use Payavel\Orchestration\Contracts\Providable;
use Payavel\Orchestration\Tests\Traits\CreatesConfigServiceables;
use Payavel\Orchestration\Tests\Traits\SetsConfigDriver;

class ConfigCheckoutInstallCommandTest extends TestCheckoutInstallCommand
class CheckoutInstallCommandTest extends TestCheckoutInstallCommand
{
use CreatesConfigServiceables;
use SetsConfigDriver;
Expand Down
13 changes: 13 additions & 0 deletions tests/Feature/Console/Config/CheckoutProviderCommandTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Config;

use Payavel\Checkout\Tests\Feature\Console\TestCheckoutProviderCommand;
use Payavel\Orchestration\Tests\Traits\CreatesConfigServiceables;
use Payavel\Orchestration\Tests\Traits\SetsConfigDriver;

class CheckoutProviderCommandTest extends TestCheckoutProviderCommand
{
use CreatesConfigServiceables;
use SetsConfigDriver;
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Commands;
namespace Payavel\Checkout\Tests\Feature\Console\Database;

use Illuminate\Support\Str;
use Payavel\Checkout\Tests\Feature\Console\TestCheckoutInstallCommand;
use Payavel\Orchestration\Contracts\Accountable;
use Payavel\Orchestration\Contracts\Providable;
use Payavel\Orchestration\Models\Account;
use Payavel\Orchestration\Models\Provider;
use Payavel\Orchestration\Tests\Traits\CreatesDatabaseServiceables;
use Payavel\Orchestration\Tests\Traits\SetsDatabaseDriver;

class DatabaseCheckoutInstallCommandTest extends TestCheckoutInstallCommand
class CheckoutInstallCommandTest extends TestCheckoutInstallCommand
{
use CreatesDatabaseServiceables;
use SetsDatabaseDriver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Commands;
namespace Payavel\Checkout\Tests\Feature\Console\Database;

use Payavel\Checkout\Tests\Feature\Console\TestCheckoutProviderCommand;
use Payavel\Orchestration\Tests\Traits\CreatesDatabaseServiceables;
use Payavel\Orchestration\Tests\Traits\SetsDatabaseDriver;

class DatabaseCheckoutProviderCommandTest extends TestCheckoutProviderCommand
class CheckoutProviderCommandTest extends TestCheckoutProviderCommand
{
use CreatesDatabaseServiceables;
use SetsDatabaseDriver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Commands;
namespace Payavel\Checkout\Tests\Feature\Console;

use Illuminate\Support\Facades\Config;
use Payavel\Checkout\Tests\TestCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Payavel\Checkout\Tests\Feature\Console\Commands;
namespace Payavel\Checkout\Tests\Feature\Console;

use Payavel\Checkout\Tests\TestCase;
use Payavel\Orchestration\Tests\Contracts\CreatesServiceables;
Expand Down

0 comments on commit 865cc6c

Please sign in to comment.