Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Aug 3, 2014
1 parent eb1102e commit 6667d71
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 197 deletions.
15 changes: 0 additions & 15 deletions app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,6 @@
*/


// test routes
Route::get('hello', array(
'as' => 'hello',
'uses' => 'GrahamCampbell\BootstrapCMS\Controllers\HomeController@showWelcome'
));
Route::get('test', array(
'as' => 'test',
'uses' => 'GrahamCampbell\BootstrapCMS\Controllers\HomeController@showTest'
));
Route::get('testqueue', array(
'as' => 'testqueue',
'uses' => 'GrahamCampbell\BootstrapCMS\Controllers\HomeController@testQueue'
));


// send users to the home page
Route::get('/', array('as' => 'base', function () {
Session::flash('', ''); // work around laravel bug if there is no session yet
Expand Down
17 changes: 0 additions & 17 deletions app/views/index.blade.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/BootstrapCMSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public function register()
$this->registerNavigationSubscriber();

$this->registerCommentController();
$this->registerHomeController();
$this->registerPageController();
}

Expand Down Expand Up @@ -258,22 +257,6 @@ protected function registerCommentController()
});
}

/**
* Register the home controller class.
*
* @return void
*/
protected function registerHomeController()
{
$this->app->bind('GrahamCampbell\BootstrapCMS\Controllers\HomeController', function ($app) {
$email = $app['config']['workbench.email'];
$subject = $app['config']['platform.name'].' - Welcome';
$path = $app['config']['graham-campbell/core::home'];

return new Controllers\HomeController($email, $subject, $path);
});
}

/**
* Register the page controller class.
*
Expand Down
16 changes: 0 additions & 16 deletions src/Controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,20 +245,4 @@ protected function checkComment($comment)
throw new NotFoundHttpException('Comment Not Found');
}
}

/**
* Check the post model.
*
* @param mixed $post
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*
* @return void
*/
protected function checkPost($post)
{
if (!$post) {
throw new NotFoundHttpException('Post Not Found');
}
}
}
115 changes: 0 additions & 115 deletions src/Controllers/HomeController.php

This file was deleted.

18 changes: 1 addition & 17 deletions tests/Acceptance/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,18 @@ abstract class AbstractTestCase extends BaseTestCase
*/
protected function start()
{
file_put_contents(storage_path('temp.sqlite'), '');

$this->readyApp();

$this->app['artisan']->call('app:install');
}

protected function readyApp()
{
$this->app['config']->set('database.connections.sqlite.database', storage_path('temp.sqlite'));
$this->app['router']->enableFilters();

}

protected function callAgain()
{
$this->refreshApplication();

$this->readyApp();
$this->start();

return call_user_func_array(array($this, 'call'), func_get_args());
}

protected function login($id = 1)
{
$this->app['credentials']->login($this->app['userprovider']->find($id));
}

/**
* Run extra tear down code.
*
Expand Down

0 comments on commit 6667d71

Please sign in to comment.