tests/Wiki/Templates/MissionListTest.php
File MissionListTest.php
has 624 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: JC
* Date: 2016-11-18
- Create a ticketCreate a ticket
MissionListTest
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MissionListTest extends TestCase
{
private $wiki;
/**
- Create a ticketCreate a ticket
Method checkCadetAdvStep3
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetAdvStep3(Mission $model)
{
$step = $model->steps[2];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(2, $step->skills);
- Create a ticketCreate a ticket
Method checkCadetStep3
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetStep3(Mission $model)
{
$step = $model->steps[2];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(2, $step->skills);
- Create a ticketCreate a ticket
Method checkExportedMissionSteps
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkExportedMissionSteps(array $mission)
{
$this->assertArrayHasKey(
'steps',
$mission,
- Create a ticketCreate a ticket
Method checkCadetAdvStep4
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetAdvStep4(Mission $model)
{
$step = $model->steps[3];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(2, $step->skills);
- Create a ticketCreate a ticket
Method checkCadetStep4
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetStep4(Mission $model)
{
$step = $model->steps[3];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(2, $step->skills);
- Create a ticketCreate a ticket
Method checkExportedMissionCost
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkExportedMissionCost(array $mission)
{
$this->assertArrayHasKey(
'cost',
$mission,
- Create a ticketCreate a ticket
Method checkExportedStepRequirements
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkExportedStepRequirements(
array $step,
int $idx,
string $mission
) {
- Create a ticketCreate a ticket
Method checkCadetStep1
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetStep1(Mission $model)
{
$step = $model->steps[0];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(1, $step->skills);
- Create a ticketCreate a ticket
Method checkCadetAdvStep1
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetAdvStep1(Mission $model)
{
$step = $model->steps[0];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(1, $step->skills);
- Create a ticketCreate a ticket
Method checkCadetStep5
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetStep5(Mission $model)
{
$step = $model->steps[4];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(1, $step->skills);
- Create a ticketCreate a ticket
Method checkCadetAdvStep5
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCadetAdvStep5(Mission $model)
{
$step = $model->steps[4];
$this->assertInstanceOf(MissionStep::class, $step);
$this->assertCount(1, $step->skills);
- Create a ticketCreate a ticket