소스 검색

add php testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/1/merge
Bo-Yi Wu 6 년 전
부모
커밋
9c930c8e29
No known key found for this signature in database 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);
}
}

불러오는 중...
취소
저장