mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Update CI/CD
This commit is contained in:
@@ -19,7 +19,7 @@ class AdminTest extends TestCase
|
||||
|
||||
$urls = [
|
||||
'admin',
|
||||
'admin/calendar',
|
||||
'admin/schedule',
|
||||
'admin/message',
|
||||
'admin/message/add',
|
||||
'admin/inventory',
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
|
||||
class ECCTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testUrl()
|
||||
{
|
||||
$appURL = "dev.c-cms.cf";
|
||||
|
||||
$urls = [
|
||||
'ecc',
|
||||
'ecc/calendar',
|
||||
'ecc/messages',
|
||||
'ecc/guide',
|
||||
'ecc/update'
|
||||
];
|
||||
|
||||
echo PHP_EOL;
|
||||
|
||||
foreach ($urls as $url) {
|
||||
$response = $this->get($url);
|
||||
if((int)$response->status() === 404){
|
||||
echo $appURL . $url . ' (FAILED) return a 404.';
|
||||
$this->assertTrue(false);
|
||||
} else {
|
||||
echo $appURL . $url . ' (SUCCESS)';
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
|
||||
foreach ($urls as $url) {
|
||||
$response = $this->get($url);
|
||||
if((int)$response->status() === 500){
|
||||
echo $appURL . $url . ' (FAILED) return a 500.';
|
||||
$this->assertTrue(false);
|
||||
} else {
|
||||
echo $appURL . $url . ' (SUCCESS)';
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user