tests/src/admin/apis/NavControllerTest.php
File NavControllerTest.php
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace cmstests\src\admin\apis;
use cmstests\WebModelTestCase;
Method testActionToggleHome
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testActionToggleHome()
{
PermissionScope::run($this->app, function (PermissionScope $scope) {
$this->createAdminLangFixture();
$this->createCmsNavItemRedirectFixture();
Method testGetProperties
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testGetProperties()
{
PermissionScope::run($this->app, function (PermissionScope $scope) {
$this->createAdminLangFixture();
$this->createCmsNavItemRedirectFixture();
Method testDelete
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testDelete()
{
PermissionScope::run($this->app, function (PermissionScope $scope) {
$this->createAdminLangFixture();
$this->createCmsWebsiteFixture([
Method testActionDeepPageCopyAsTemplateSuccess
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testActionDeepPageCopyAsTemplateSuccess()
{
// success
PermissionScope::run($this->app, function (PermissionScope $scope) {
$this->createAdminLangFixture();
Method testActionDeepPageCopyAsTemplateError
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testActionDeepPageCopyAsTemplateError()
{
// erroring
PermissionScope::run($this->app, function (PermissionScope $scope) {
$this->createAdminLangFixture();
Method testActionTags
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testActionTags()
{
PermissionScope::run($this->app, function (PermissionScope $scope) {
$scope->createAndAllowRoute('webmodel/nav/tags');
$scope->createAndAllowRoute('webmodel/nav/save-tags');