瀏覽代碼

add php testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu 6 年之前
父節點
當前提交
9c930c8e29
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: F84B2110C500B1F
共有 2 個檔案被更改,包括 25 行新增1 行删除
  1. +4
    -1
      Makefile
  2. +21
    -0
      tests/Feature/UserTest.php

+ 4
- 1
Makefile 查看文件

@ -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 查看文件

@ -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);
}
}

Loading…
取消
儲存