Commit cde1aefa authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Dashboard/' changes from 4ff3fb2..0461d9d

0461d9d Adding code climate badge
456a1ff Removing unused commented code
b7b9c31 Typehinting the router
53d6b57 Adding sensiolab config file
273e478 Removing functional tests
7f6d94c Adding travis config
689277a Removing flash msg include

git-subtree-dir: Modules/Dashboard
git-subtree-split: 0461d9d03da6fc717427686659c267ce8e4c72ab
parent abac7927
rules:
php.interface_has_no_interface_suffix:
enabled: false
language: php
php:
- 5.6
- 5.5
- 5.4
- hhvm
...@@ -3,18 +3,17 @@ ...@@ -3,18 +3,17 @@
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
class DashboardDatabaseSeeder extends Seeder { class DashboardDatabaseSeeder extends Seeder
{
/** /**
* Run the database seeds. * Run the database seeds.
* *
* @return void * @return void
*/ */
public function run() public function run()
{ {
Model::unguard(); Model::unguard();
}
// $this->call("OthersTableSeeder");
}
} }
<?php <?php
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function($router)
use Illuminate\Routing\Router;
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function(Router $router)
{ {
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Dashboard\Http\Controllers'], function($router) $router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Dashboard\Http\Controllers'], function(Router $router)
{ {
$router->get('/', ['as' => 'dashboard.index', 'uses' => 'Admin\DashboardController@index']); $router->get('/', ['as' => 'dashboard.index', 'uses' => 'Admin\DashboardController@index']);
}); });
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('flash::message')
<p>{{ trans('dashboard::dashboard.welcome-message') }}</p> <p>{{ trans('dashboard::dashboard.welcome-message') }}</p>
</div> </div>
</div> </div>
......
<?php namespace Modules\Dashboard\Tests;
use Cartalyst\Sentinel\Laravel\Facades\Sentinel;
use Modules\Core\Tests\BaseTestCase;
class UrlTest extends BaseTestCase
{
/** @test */
public function testDashboardAccessible()
{
$user = Sentinel::findById(4);
Sentinel::login($user);
$this->checkResponseIsOkAndContains(['GET', '/' . Config::get('core::core.admin-prefix')], 'h1:contains("Dashboard")');
}
}
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254/mini.png)](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254/mini.png)](https://insight.sensiolabs.com/projects/3616f9d8-1e5c-46c6-9058-13e916851254)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nWidart-Modules/Dashboard/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nWidart-Modules/Dashboard/?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nWidart-Modules/Dashboard/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nWidart-Modules/Dashboard/?branch=master)
[![Code Climate](https://codeclimate.com/github/nWidart-Modules/Dashboard/badges/gpa.svg)](https://codeclimate.com/github/nWidart-Modules/Dashboard)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment