tollwerk/admin

View on GitHub
src/Admin/Tests/CliTest.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method testVhost has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testVhost()
    {
        // Create an account
        $this->assertTrue($this->getAdminCmd()->addArg('account:create')->addArg('test')->execute());

Severity: Major
Found in src/Admin/Tests/CliTest.php - About 2 hrs to fix

    Method testDomain has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testDomain()
        {
            // Create an account
            $this->assertTrue($this->getAdminCmd()->addArg('account:create')->addArg('test')->execute());
    
    
    Severity: Minor
    Found in src/Admin/Tests/CliTest.php - About 1 hr to fix

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

          public function testAccount()
          {
              // Create an account
              $this->assertTrue($this->getAdminCmd()->addArg('account:create')->addArg('test')->execute());
              $this->assertEquals(1, $this->getConnection()->getRowCount('account'));
      Severity: Minor
      Found in src/Admin/Tests/CliTest.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status