This commit is contained in:
Bozhidar 2024-05-15 00:54:07 +03:00
parent e3a73c702d
commit 16124057c6
6 changed files with 10 additions and 9 deletions

View file

@ -21,7 +21,7 @@ use Illuminate\Support\Str;
use Tests\Feature\Api\ActionTestCase;
use Illuminate\Support\Facades\Queue;
class HostingSubscriptionBackupTest extends ActionTestCase
class HSBackupTest extends ActionTestCase
{
public function testFullBackup()
{

View file

@ -13,7 +13,7 @@ use Illuminate\Support\Str;
use PHPUnit\Framework\TestCase;
use Tests\Feature\Api\ActionTestCase;
class HostingSubscriptionCreateTest extends ActionTestCase
class HSCreateTest extends ActionTestCase
{
function testRouteContainsMiddleware()
{

View file

@ -16,7 +16,7 @@ use Illuminate\Support\Str;
use PHPUnit\Framework\TestCase;
use Tests\Feature\Api\ActionTestCase;
class HostingSubscriptionWithNodeJSCreateTest extends ActionTestCase
class HSNodeJSTest extends ActionTestCase
{
function testRouteContainsMiddleware()
{
@ -35,15 +35,16 @@ class HostingSubscriptionWithNodeJSCreateTest extends ActionTestCase
ApiKeyMiddleware::class
);
// $this->assertRouteContainsMiddleware(
// 'api.hosting-subscriptions.destroy',
// ApiKeyMiddleware::class
// );
$this->assertRouteContainsMiddleware(
'api.hosting-subscriptions.destroy',
ApiKeyMiddleware::class
);
}
function testCreate()
{
$this->assertTrue(Str::contains(php_uname(),'Ubuntu'));
$isNodeJsInstalled = false;

View file

@ -6,7 +6,7 @@ use App\Http\Middleware\ApiKeyMiddleware;
use PHPUnit\Framework\TestCase;
use Tests\Feature\Api\ActionTestCase;
class HostingSubscriptionsTest extends ActionTestCase
class HSTest extends ActionTestCase
{
function testRouteContainsMiddleware()

View file

@ -9,7 +9,7 @@ use Modules\Microweber\Filament\Clusters\Microweber\Pages\Version;
use Modules\Microweber\Jobs\DownloadMicroweber;
use Tests\Feature\Api\ActionTestCase;
class MicroweberHostingSubscriptionCreateTest extends ActionTestCase
class MWHSCreateTest extends ActionTestCase
{
function testCreateInstallation()
{