Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 50f8f66

Browse files
Updates for Laravel 5.0 release
1 parent 186850a commit 50f8f66

File tree

12 files changed

+44
-692
lines changed

12 files changed

+44
-692
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/tests/_output
44
/storage/*.sqlite
55
.env
6+
.idea

‎app/Console/Commands/GenerateRepository.php‎

Lines changed: 0 additions & 100 deletions
This file was deleted.

‎app/Console/Kernel.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Kernel extends ConsoleKernel {
1111
* @var array
1212
*/
1313
protected $commands = [
14-
'App\Console\Commands\Inspire',
14+
'App\Console\Commands\Inspire'
1515
];
1616

1717
/**

‎app/Providers/TestingServiceProvider.php‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎config/app.php‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
| the box, Laravel uses the Monolog PHP logging library. This gives
9292
| you a variety of powerful log handlers / formatters to utilize.
9393
|
94-
| Available Settings: "single", "daily", "syslog", "errorlog"
94+
| Available Settings: "single", "daily", "syslog"
9595
|
9696
*/
9797

@@ -145,9 +145,7 @@
145145
'App\Providers\EventServiceProvider',
146146
'App\Providers\RouteServiceProvider',
147147

148-
'Illuminate\Html\HtmlServiceProvider',
149-
'App\Providers\TestingServiceProvider',
150-
148+
'Illuminate\Html\HtmlServiceProvider',
151149
],
152150

153151
/*
@@ -196,8 +194,8 @@
196194
'Validator' => 'Illuminate\Support\Facades\Validator',
197195
'View' => 'Illuminate\Support\Facades\View',
198196

199-
'Html'=> 'Illuminate\Html\HtmlFacade',
200-
'Form'=> 'Illuminate\Html\FormFacade'
197+
'Html'=> 'Illuminate\Html\HtmlFacade',
198+
'Form'=> 'Illuminate\Html\FormFacade'
201199
],
202200

203201
];

‎readme.md‎

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,47 @@
1-
## Laravel PHP Framework
1+
#Sample Laravel Application with Codeception tests.
22

3-
[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework)
4-
[![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework)
5-
[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework)
6-
[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework)
7-
[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
3+
[![Build Status](https://travis-ci.org/janhenkgerritsen/codeception-laravel5-sample.svg?branch=master)](https://travis-ci.org/janhenkgerritsen/codeception-laravel5-sample)
84

9-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
5+
### Setup
106

11-
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
7+
- Clone repo
8+
- Install composer dependencies: `composer install`
9+
- Create databases by creating the following files:
10+
- `storage/database.sqlite`
11+
- `storage/testing.sqlite`
12+
- Run the following commands:
13+
- `php artisan migrate`
14+
- `php artisan migrate --database=sqlite_testing`
15+
- Server: run `php -S localhost:8000 -t public`
16+
- Browse to localhost:8000/posts
1217

13-
##Official Documentation
18+
### To test
1419

15-
Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
20+
Run Codeception, installed via Composer
1621

17-
## Contributing
22+
```
23+
./vendor/bin/codecept run
24+
```
1825

19-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
26+
## Tests
2027

21-
### License
28+
Please check out some [good test examples](https://github.com/janhenkgerritsen/codeception-laravel5-sample/tree/master/tests) provided.
2229

23-
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
30+
### Functional Tests
31+
32+
Demonstrates testing of [CRUD application](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/master/tests/functional/PostCrudCest.php) with
33+
34+
* [PageObjects](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/master/tests%2Ffunctional%2F_pages%2FPostsPage.php)
35+
* [authentication](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/master/tests%2Ffunctional%2FAuthCest.php) (by user, credentials, http auth)
36+
* usage of session variables
37+
* [routes](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/master/tests%2Ffunctional%2FRoutesCest.php)
38+
* creating and checking records in database
39+
* testing of form errors
40+
41+
### API Tests
42+
43+
Demonstrates functional [testing of API](https://github.com/janhenkgerritsen/codeception-laravel5-sample/blob/master/tests%2Fapi%2FPostsResourceCest.php) using REST and Laravel5 modules connected, with
44+
45+
* partial json inclusion in response
46+
* GET/POST/PUT/DELETE requests
47+
* check changes inside database

‎tests/_support/CliHelper.php‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎tests/_support/FunctionalHelper.php‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,4 @@
66
class FunctionalHelper extends \Codeception\Module
77
{
88

9-
public function _beforeSuite($settings = array())
10-
{
11-
// TODO enable this after error in Illuminate\Foundatation\Artisan->getArtisan() is fixed
12-
// $this->debug('MIGRATING BEFORE RUN');
13-
// $I = $this->getModule('Laravel5');
14-
// $artisan = $I->grabService('artisan');
15-
// $artisan->call('migrate');
16-
}
179
}

‎tests/cli.suite.yml‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /