EaDesgin/magento2-pdf-generator2

View on GitHub
Test/Unit/Helper/PdfTest.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method setUp has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setUp()
    {
        $this->context = $this->getMockBuilder(Context::class)
            ->disableOriginalConstructor()
            ->getMock();
Severity: Major
Found in Test/Unit/Helper/PdfTest.php - About 3 hrs to fix

    Method testTemplate2Pdf has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function testTemplate2Pdf()
        {
    
            $this->pdfGeneratorMock = $this->getMockBuilder(Pdfgenerator::class)
                ->setMethods(['getTemplateCustomForm'])
    Severity: Minor
    Found in Test/Unit/Helper/PdfTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status