Skip to content

Commit

Permalink
Merge branch '3.3'
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 16, 2016
2 parents 05191f0 + bbed8ed commit 2f9d2dc
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Laravel Package Unit Testing Helper
Laravel Testing Helper for Packages Development
==============

[![Join the chat at https://gitter.im/orchestral/testbench](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/orchestral/testbench?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down Expand Up @@ -29,7 +29,7 @@ Testbench Component is a simple package that is supposed to help you write tests
5.0.x | 3.0.x
5.1.x | 3.1.x
5.2.x | 3.2.x
5.3.x | 3.3.x@dev
5.3.x | 3.3.x
5.4.x | 3.4.x@dev

## Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orchestra/testbench",
"description": "Laravel Package Unit Testing Helper",
"description": "Laravel Testing Helper for Packages Development",
"homepage": "http://orchestraplatform.com/docs/latest/components/testbench/",
"keywords": ["laravel", "orchestral", "orchestra-platform", "testing", "tdd", "bdd"],
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ title: Testbench Change Log

## Version 3.3 {#v3-3}

### v3.3.3 {#v3-3-3}

* Update application fixture.

### v3.3.2 {#v3-3-2}

* Add `Illuminate\Cookie\Middleware\EncryptCookies` to `web` middleware group by default. ([@jeroennoten](https://github.com/jeroennoten))

### v3.3.1 {#v3-3-1}

* Bump to Laravel Framework v5.3.3+.
Expand Down
2 changes: 1 addition & 1 deletion fixture/config/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
|
*/

'secure' => false,
'secure' => env('SESSION_SECURE_COOKIE', false),

/*
|--------------------------------------------------------------------------
Expand Down
Empty file removed fixture/resources/lang/.gitkeep
Empty file.
2 changes: 2 additions & 0 deletions fixture/resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
Expand Down Expand Up @@ -80,6 +81,7 @@
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',

/*
Expand Down
Empty file removed fixture/resources/views/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions src/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Kernel extends \Illuminate\Foundation\Http\Kernel
*/
protected $middlewareGroups = [
'web' => [
\Illuminate\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
Middleware\VerifyCsrfToken::class,
Expand Down
46 changes: 46 additions & 0 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

namespace Orchestra\Testbench\TestCase;

class ConfigTest extends \Orchestra\Testbench\TestCase
{
/**
* Setup the test environment.
*/
public function setUp()
{
parent::setUp();
}

/**
* Define environment setup.
*
* @param \Illuminate\Foundation\Application $app
*
* @return void
*/
protected function getEnvironmentSetUp($app)
{
$app['config']->set('database.default', 'testing');
}

/**
* Test \Illuminate\Support\Facades\Config facade is usable.
*
* @test
*/
public function testConfigFacadeIsLoaded()
{
$this->assertEquals('testing', \Config::get('database.default'));
}

/**
* Test config() helper is usable.
*
* @test
*/
public function testConfigHelperIsLoaded()
{
$this->assertEquals('testing', config('database.default'));
}
}
4 changes: 3 additions & 1 deletion tests/DatabaseFixtureTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Orchestra\Testbench\TestCase;
<?php

namespace Orchestra\Testbench\TestCase;

class DatabaseFixtureTest extends \Orchestra\Testbench\TestCase
{
Expand Down
4 changes: 3 additions & 1 deletion tests/DefaultConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Orchestra\Testbench\TestCase;
<?php

namespace Orchestra\Testbench\TestCase;

class DefaultConfigurationTest extends \Orchestra\Testbench\TestCase
{
Expand Down
4 changes: 3 additions & 1 deletion tests/Integrations/AggregateServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Orchestra\Testbench\Integrations\TestCase;
<?php

namespace Orchestra\Testbench\Integrations\TestCase;

use Orchestra\Testbench\TestCase;
use Illuminate\Support\ServiceProvider;
Expand Down
4 changes: 3 additions & 1 deletion tests/RouteTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Orchestra\Testbench\TestCase;
<?php

namespace Orchestra\Testbench\TestCase;

use Illuminate\Routing\Router;

Expand Down
4 changes: 3 additions & 1 deletion tests/TestCaseTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace Orchestra\Testbench\TestCase;
<?php

namespace Orchestra\Testbench\TestCase;

class TestCaseTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 2f9d2dc

Please sign in to comment.