Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tugas_Laravel_PABWE_2016
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fujiatma Pratama Napitupulu
Tugas_Laravel_PABWE_2016
Commits
7bfc0841
Commit
7bfc0841
authored
Nov 26, 2016
by
Tio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tambahan
parent
8fbd20c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
ExampleTest.php
TugasLaravel/tests/ExampleTest.php
+19
-0
TestCase.php
TugasLaravel/tests/TestCase.php
+25
-0
No files found.
TugasLaravel/tests/ExampleTest.php
0 → 100644
View file @
7bfc0841
<?php
use
Illuminate\Foundation\Testing\WithoutMiddleware
;
use
Illuminate\Foundation\Testing\DatabaseMigrations
;
use
Illuminate\Foundation\Testing\DatabaseTransactions
;
class
ExampleTest
extends
TestCase
{
/**
* A basic functional test example.
*
* @return void
*/
public
function
testBasicExample
()
{
$this
->
visit
(
'/'
)
->
see
(
'Laravel'
);
}
}
TugasLaravel/tests/TestCase.php
0 → 100644
View file @
7bfc0841
<?php
abstract
class
TestCase
extends
Illuminate\Foundation\Testing\TestCase
{
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected
$baseUrl
=
'http://localhost'
;
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public
function
createApplication
()
{
$app
=
require
__DIR__
.
'/../bootstrap/app.php'
;
$app
->
make
(
Illuminate\Contracts\Console\Kernel
::
class
)
->
bootstrap
();
return
$app
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment