Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 24, 2024
1 parent 68e907e commit 625d5e1
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 216 deletions.
48 changes: 0 additions & 48 deletions bin/add-user-email.sh

This file was deleted.

1 change: 0 additions & 1 deletion bin/apache-website-create.sh

This file was deleted.

19 changes: 0 additions & 19 deletions bin/cron-job-add.sh

This file was deleted.

10 changes: 0 additions & 10 deletions bin/cron-job-delete.sh

This file was deleted.

7 changes: 0 additions & 7 deletions bin/cron-jobs-list.sh

This file was deleted.

22 changes: 0 additions & 22 deletions bin/mysql-create-db-and-user.sh

This file was deleted.

34 changes: 0 additions & 34 deletions bin/nginx-website-create.sh

This file was deleted.

16 changes: 0 additions & 16 deletions bin/nginx-website-delete.sh

This file was deleted.

24 changes: 0 additions & 24 deletions bin/nginx-websites-list.sh

This file was deleted.

35 changes: 0 additions & 35 deletions web/database/migrations/2023_11_23_214651_create_backups_table.php

This file was deleted.

16 changes: 16 additions & 0 deletions web/tests/Unit/HostingSubscriptionCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use App\Http\Middleware\ApiKeyMiddleware;
use App\Installers\Server\Applications\PHPInstaller;
use App\Models\Database;
use App\Models\DatabaseUser;
use App\Models\Domain;
use App\SupportedApplicationTypes;
use Illuminate\Support\Str;
Expand Down Expand Up @@ -193,6 +195,20 @@ function test_create()
$indexPageContent = shell_exec('curl -s http://'.$hostingSubscriptionDomain);

$this->assertTrue(Str::contains($indexPageContent,'Phyre Panel - PHP App'));


// Check hosting subscription local database creation
$newDatabase = new Database();
$newDatabase->hosting_subscription_id = $hostingSubscriptionData['id'];
$newDatabase->is_remote_database_server = 0;
$newDatabase->database_name = 'phyre_unit_test_db_'.$randId;
$newDatabase->save();

$newDatabaseUser = new DatabaseUser();
$newDatabaseUser->database_id = $newDatabase->id;
$newDatabaseUser->username = 'phyre_unit_test_user_'.$randId;
$newDatabaseUser->password = 'phyre_unit_test_password_'.$randId;
$newDatabaseUser->save();
}

}

0 comments on commit 625d5e1

Please sign in to comment.