mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 13:23:04 +01:00
Update phpunit xml
This commit is contained in:
3
.github/workflows/laravel-dev.yml
vendored
3
.github/workflows/laravel-dev.yml
vendored
@@ -10,6 +10,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
|
||||||
|
with:
|
||||||
|
php-version: '7.4'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
|
|||||||
3
.github/workflows/laravel-stable.yml
vendored
3
.github/workflows/laravel-stable.yml
vendored
@@ -10,6 +10,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
|
||||||
|
with:
|
||||||
|
php-version: '7.4'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
||||||
|
|||||||
51
phpunit.xml
51
phpunit.xml
@@ -1,29 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
|
||||||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
|
<coverage processUncoveredFiles="true">
|
||||||
bootstrap="vendor/autoload.php"
|
<include>
|
||||||
colors="true">
|
<directory suffix=".php">./app</directory>
|
||||||
<testsuites>
|
</include>
|
||||||
<testsuite name="Unit">
|
</coverage>
|
||||||
<directory suffix="Test.php">./tests/Unit</directory>
|
<testsuites>
|
||||||
</testsuite>
|
<testsuite name="Unit">
|
||||||
<testsuite name="Feature">
|
<directory suffix="Test.php">./tests/Unit</directory>
|
||||||
<directory suffix="Test.php">./tests/Feature</directory>
|
</testsuite>
|
||||||
</testsuite>
|
<testsuite name="Feature">
|
||||||
</testsuites>
|
<directory suffix="Test.php">./tests/Feature</directory>
|
||||||
<filter>
|
</testsuite>
|
||||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
</testsuites>
|
||||||
<directory suffix=".php">./app</directory>
|
<php>
|
||||||
</whitelist>
|
<server name="APP_ENV" value="testing"/>
|
||||||
</filter>
|
<server name="BCRYPT_ROUNDS" value="4"/>
|
||||||
<php>
|
<server name="CACHE_DRIVER" value="array"/>
|
||||||
<server name="APP_ENV" value="testing"/>
|
<server name="DB_CONNECTION" value="sqlite"/>
|
||||||
<server name="BCRYPT_ROUNDS" value="4"/>
|
<server name="DB_DATABASE" value=":memory:"/>
|
||||||
<server name="CACHE_DRIVER" value="array"/>
|
<server name="MAIL_MAILER" value="array"/>
|
||||||
<server name="DB_CONNECTION" value="sqlite"/>
|
<server name="QUEUE_CONNECTION" value="sync"/>
|
||||||
<server name="DB_DATABASE" value=":memory:"/>
|
<server name="SESSION_DRIVER" value="array"/>
|
||||||
<server name="MAIL_MAILER" value="array"/>
|
</php>
|
||||||
<server name="QUEUE_CONNECTION" value="sync"/>
|
|
||||||
<server name="SESSION_DRIVER" value="array"/>
|
|
||||||
</php>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests\Feature;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
||||||
use Illuminate\Foundation\Testing\WithFaker;
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class BackupTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* A basic feature test example.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function testExample()
|
|
||||||
{
|
|
||||||
$response = $this->get('/');
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests\Feature;
|
|
||||||
|
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
||||||
use Illuminate\Foundation\Testing\WithFaker;
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class SettingsTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* A basic feature test example.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function testExample()
|
|
||||||
{
|
|
||||||
$response = $this->get('/');
|
|
||||||
|
|
||||||
$response->assertStatus(200);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user