src/cases/NgRestTestCase.php
File NgRestTestCase.php
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace luya\testsuite\cases;
use yii\base\InvalidConfigException;
Method mockBasicAdminModels
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function mockBasicAdminModels()
{
$this->createAdminUserGroupTable();
$this->createAdminGroupAuthTable();
$this->createAdminAuthTable();
Method testBasicNgRestMethods
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testBasicNgRestMethods()
{
$class = $this->modelClass;
$this->assertNotNull($class::ngRestApiEndpoint());