mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
PSR-2 compat: Change Blog*_Controller to Blog*Controller
This commit is contained in:
parent
e263ba33ec
commit
5f07a3cc23
@ -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
|
@ -8,7 +8,7 @@ use Page_Controller;
|
||||
* @package silverstripe
|
||||
* @subpackage blog
|
||||
*/
|
||||
class BlogPost_Controller extends Page_Controller
|
||||
class BlogPostController extends Page_Controller
|
||||
{
|
||||
|
||||
}
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user