Explorar el Código

add php testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu hace 6 años
padre
commit
9c930c8e29
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: F84B2110C500B1F
Se han modificado 2 ficheros con 25 adiciones y 1 borrados
  1. +4
    -1
      Makefile
  2. +21
    -0
      tests/Feature/UserTest.php

+ 4
- 1
Makefile Ver fichero

@ -1,8 +1,11 @@
composer:
composer install --no-progress --profile --prefer-dist
composer install
yarn:
yarn install
test:
./vendor/bin/phpunit
install: composer yarn

+ 21
- 0
tests/Feature/UserTest.php Ver fichero

@ -0,0 +1,21 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class UserTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testExample()
{
$this->assertTrue(true);
}
}

Cargando…
Cancelar
Guardar