Oefenweb/cakephp-queue

View on GitHub
Test/Case/Model/QueuedTaskTest.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method testNotBeforeOrder has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testNotBeforeOrder() {
        $capabilities = [
            'task1' => [
                'name' => 'task1',
                'timeout' => 100,
Severity: Minor
Found in Test/Case/Model/QueuedTaskTest.php - About 1 hr to fix

    Method testSequence has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testSequence() {
            // Capabilities is a list of tasks the worker can run
            $capabilities = [
                'task1' => [
                    'name' => 'task1',
    Severity: Minor
    Found in Test/Case/Model/QueuedTaskTest.php - About 1 hr to fix

      Method testCreateAndFetch has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function testCreateAndFetch() {
              // Capabilities is a list of tasks the worker can run
              $capabilities = [
                  'task1' => [
                      'name' => 'task1',
      Severity: Minor
      Found in Test/Case/Model/QueuedTaskTest.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status