YetiForceCompany/YetiForceCRM

View on GitHub
tests/Gui/SettingsTest.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Static call to undeclared method \Gui_SettingsTest::markTestSkipped
Open

        static::markTestSkipped('unfinished');
Severity: Critical
Found in tests/Gui/SettingsTest.php by phan

Possibly zero references to use statement for classlike/namespace WebDriverBy (\Facebook\WebDriver\WebDriverBy)
Open

use Facebook\WebDriver\WebDriverBy;
Severity: Minor
Found in tests/Gui/SettingsTest.php by phan

Static call to undeclared method \Gui_SettingsTest::markTestSkipped
Open

        static::markTestSkipped('unfinished');
Severity: Critical
Found in tests/Gui/SettingsTest.php by phan

Remove this commented out code.
Open

        // $this->url('index.php?parent=Settings&module=YetiForce&view=Shop');
Severity: Major
Found in tests/Gui/SettingsTest.php by sonar-php

Programmers should not comment out code as it bloats programs and reduces readability.

Unused code should be deleted and can be retrieved from source control history if required.

See

  • MISRA C:2004, 2.4 - Sections of code should not be "commented out".
  • MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
  • MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
  • MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

Remove this commented out code.
Open

        // $this->url('index.php?parent=Settings&module=Vtiger&view=Index');
Severity: Major
Found in tests/Gui/SettingsTest.php by sonar-php

Programmers should not comment out code as it bloats programs and reduces readability.

Unused code should be deleted and can be retrieved from source control history if required.

See

  • MISRA C:2004, 2.4 - Sections of code should not be "commented out".
  • MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
  • MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
  • MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

final class Gui_SettingsTest extends \Tests\GuiBase
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

The class Gui_SettingsTest is not named in CamelCase.
Open

final class Gui_SettingsTest extends \Tests\GuiBase
{
    /**
     * Testing marketplace view.
     *
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return void
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // $this->findError();
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // $this->url('index.php?parent=Settings&module=YetiForce&view=Shop');
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Testing marketplace view.
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('Vtiger', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('Shop', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        static::markTestSkipped('unfinished');
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // $this->findError();
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // $this->url('index.php?parent=Settings&module=Vtiger&view=Index');
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('Index', $this->driver->findElement(WebDriverBy::id('view'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return void
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testDashboard(): void
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        static::markTestSkipped('unfinished');
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('Settings', $this->driver->findElement(WebDriverBy::id('parent'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('YetiForce', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Line exceeds 120 characters; contains 121 characters
Open

        // static::assertSame('YetiForce', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testMarketplace(): void
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Testing dashboard view.
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        // static::assertSame('Settings', $this->driver->findElement(WebDriverBy::id('parent'))->getAttribute('value'));
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

Class name "Gui_SettingsTest" is not in camel caps format
Open

final class Gui_SettingsTest extends \Tests\GuiBase
Severity: Minor
Found in tests/Gui/SettingsTest.php by phpcodesniffer

There are no issues that match your filters.

Category
Status