PSR-2 compat: Change Blog*_Controller to Blog*Controller

This commit is contained in:
Robbie Averill 2017-01-12 10:56:08 +13:00
parent e263ba33ec
commit 5f07a3cc23
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ use SilverStripe\Security\Member;
* @package silverstripe
* @subpackage blog
*/
class Blog_Controller extends Page_Controller
class BlogController extends Page_Controller
{
/**
* @var array

View File

@ -8,7 +8,7 @@ use Page_Controller;
* @package silverstripe
* @subpackage blog
*/
class BlogPost_Controller extends Page_Controller
class BlogPostController extends Page_Controller
{
}

View File

@ -1,6 +1,6 @@
<?php
use SilverStripe\Blog\Model\Blog_Controller;
use SilverStripe\Blog\Model\BlogController;
use SilverStripe\CMS\Controllers\ContentController;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Director;
@ -148,7 +148,7 @@ class BlogTest extends SapphireTest
public function testArchiveYear()
{
$blog = $this->objFromFixture('SilverStripe\\Blog\\Model\\Blog', 'FirstBlog');
$controller = new Blog_Controller($blog);
$controller = new BlogController($blog);
$this->requestURL($controller, 'first-post/archive/');
$this->assertEquals(2013, $controller->getArchiveYear(), 'getArchiveYear should return 2013');
}
@ -287,7 +287,7 @@ class BlogTest extends SapphireTest
public function testFilteredCategories()
{
$blog = $this->objFromFixture('SilverStripe\\Blog\\Model\\Blog', 'FirstBlog');
$controller = new Blog_Controller($blog);
$controller = new BlogController($blog);
// Root url
$this->requestURL($controller, 'first-post');