YetiForceCompany/YetiForceCRM

View on GitHub
tests/Settings/Currency.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method testRecordModel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testRecordModel()
    {
        $recordModel = \Settings_Currency_Record_Model::getInstance(self::$id);
        $this->assertNotNull($recordModel, 'Expected recordModel is not empty');
        $this->assertNotEmpty($recordModel->getName(), 'Expected name is not empty');
Severity: Minor
Found in tests/Settings/Currency.php - About 1 hr to fix

    Missing class import via use statement (line '28', column '22').
    Open

            $recordModel = new \Settings_Currency_Record_Model();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '37', column '15').
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '129', column '26').
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['id' => self::$id, 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '130', column '26').
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['currency_name' => 'Argentina', 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '60', column '15').
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid using static access to class '\Settings_Currency_Record_Model' in method 'testRecordModel'.
    Open

            $recordModel = \Settings_Currency_Record_Model::getInstance(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_Record_Model' in method 'testRecordModel'.
    Open

            $allNonmappedRecords = \Settings_Currency_Record_Model::getAllNonMapped();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_Module_Model' in method 'testDeleteCurrency'.
    Open

            \Settings_Currency_Module_Model::delete(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_ListView_Model' in method 'testListViewModel'.
    Open

            $model = \Settings_Currency_ListView_Model::getInstance('Settings:Currency');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_Record_Model' in method 'testRecordModel'.
    Open

            $this->assertNotNull(\Settings_Currency_Record_Model::getInstance($recordModel->getName()), 'Expected record model instance.');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_Record_Model' in method 'testRecordModel'.
    Open

            $allRecords = \Settings_Currency_Record_Model::getAll();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Settings_Currency_Record_Model' in method 'testEditCurrency'.
    Open

            $recordModel = \Settings_Currency_Record_Model::getInstance(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Define a constant instead of duplicating this literal "deleted" 3 times.
    Open

                $this->assertTrue($testRecord->has('deleted'), 'Instance should contain field `deleted`');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "currency_code" 6 times.
    Open

            $recordModel->set('currency_code', 'BHD');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "currency_name" 7 times.
    Open

            $recordModel->set('currency_name', 'Bahrain');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "currency_status" 5 times.
    Open

            $recordModel->set('currency_status', 'Active');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "currency_symbol" 6 times.
    Open

            $recordModel->set('currency_symbol', 'BD');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "vtiger_currency_info" 4 times.
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "conversion_rate" 5 times.
    Open

            $recordModel->set('conversion_rate', 1.65);
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "Argentina" 3 times.
    Open

            $recordModel->set('currency_name', 'Argentina');
    Severity: Critical
    Found in tests/Settings/Currency.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_symbol'], '$');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertIsArray
    Open

            $this->assertIsArray($allRecords, 'Expected that all records result is always array type');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('currency_symbol'), 'Instance should contain field `currency_symbol`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertInstanceOf
    Open

                $this->assertInstanceOf('Settings_Currency_Record_Model', $testNonmappedRecord, 'Instance type mismatch');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_name'), 'Instance should contain field `currency_name`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotEmpty
    Open

            $this->assertNotEmpty($recordModel->getName(), 'Expected name is not empty');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('id'), 'Instance should contain field `id`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertIsArray
    Open

            $this->assertIsArray($allNonmappedRecords, 'Expected that all non mapped records result is always array type');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_code'], 'ARS');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertFalse
    Open

            $this->assertFalse($recordModel->isBaseCurrency(), 'Expected that record is not base currency');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotEmpty
    Open

            $this->assertNotEmpty($allRecords, 'Expected that all records result is not empty');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotNull
    Open

            $this->assertNotNull(self::$id, 'Id is null');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_status'], 'No');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotNull
    Open

            $this->assertNotNull(\Settings_Currency_Record_Model::getInstance($recordModel->getName()), 'Expected record model instance.');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('defaultid'), 'Instance should contain field `defaultid`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_code'), 'Instance should contain field `currency_code`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotFalse
    Open

            $this->assertNotFalse($row, 'No record id: ' . self::$id);
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_code'], 'BHD');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \App\Db\Query::from
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['currency_name' => 'Argentina', 'deleted' => 1]])->exists());
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame((float) $row['conversion_rate'], 1.65);
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertInstanceOf
    Open

            $this->assertInstanceOf('\App\Db\Query', $basicListQuery, 'Query object expected.');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_symbol'], 'BD');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotNull
    Open

            $this->assertNotNull($recordModel, 'Expected recordModel is not empty');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotEmpty
    Open

            $this->assertNotEmpty($allNonmappedRecords, 'Expected that all non mapped records result is not empty');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testNonmappedRecord->has('currencyid'), 'Instance should contain field `currencyid`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \App\Db\Query::from
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['id' => self::$id, 'deleted' => 1]])->exists());
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('currency_code'), 'Instance should contain field `currency_code`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \App\Db\Query::from
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_name'], 'Bahrain');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotEmpty
    Open

            $this->assertNotEmpty($basicListQuery->createCommand()->execute(), 'Query execute should return any result');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('conversion_rate'), 'Instance should contain field `conversion_rate`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_symbol'), 'Instance should contain field `currency_symbol`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['id' => self::$id, 'deleted' => 1]])->exists());
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertInstanceOf
    Open

                $this->assertInstanceOf('Settings_Currency_Record_Model', $testRecord, 'Instance type mismatch');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_status'], 'Active');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($row['currency_name'], 'Argentina');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertIsArray
    Open

            $this->assertIsArray($recordModel->getRecordLinks(), 'Expected that record links is always array type');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertNotFalse
    Open

            $this->assertNotFalse($row, 'No record id: ' . self::$id);
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('currency_name'), 'Instance should contain field `currency_name`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('currency_status'), 'Instance should contain field `currency_status`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame((float) $row['conversion_rate'], 0.65);
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \App\Db\Command::execute
    Open

            $this->assertNotEmpty($basicListQuery->createCommand()->execute(), 'Query execute should return any result');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertSame
    Open

            $this->assertSame($recordModel->getDeleteStatus(), 0, 'Expected that delete status of record is 0');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \Tests\Settings\Currency::assertTrue
    Open

                $this->assertTrue($testRecord->has('deleted'), 'Instance should contain field `deleted`');
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Call to undeclared method \App\Db\Query::from
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['currency_name' => 'Argentina', 'deleted' => 1]])->exists());
    Severity: Critical
    Found in tests/Settings/Currency.php by phan

    Avoid variables with short names like $id. Configured minimum length is 3.
    Open

        private static $id;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpmd

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Spaces must be used for alignment; tabs are not allowed
    Open

        private static $id;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Currency id.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Testing add currency creation.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function testAddCurrency()
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function testListViewModel()
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('conversion_rate', 1.65);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_symbol', '$');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotNull($recordModel, 'Expected recordModel is not empty');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertIsArray($allRecords, 'Expected that all records result is always array type');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotEmpty($allRecords, 'Expected that all records result is not empty');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('currency_symbol'), 'Instance should contain field `currency_symbol`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_name'], 'Bahrain');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_symbol'], 'BD');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_name'], 'Argentina');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            if ($testRecord) {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertInstanceOf('Settings_Currency_Record_Model', $testRecord, 'Instance type mismatch');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

     * @author       Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            self::$id = $recordModel->save();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Testing ListView model functions.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $testRecord = \array_pop($allRecords);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->logs = $testRecord;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('currency_name'), 'Instance should contain field `currency_name`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('deleted'), 'Instance should contain field `deleted`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertIsArray($allNonmappedRecords, 'Expected that all non mapped records result is always array type');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame((float) $row['conversion_rate'], 0.65);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotEmpty($basicListQuery->createCommand()->execute(), 'Query execute should return any result');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertFalse($recordModel->isBaseCurrency(), 'Expected that record is not base currency');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('defaultid'), 'Instance should contain field `defaultid`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Testing edit currency creation.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function testDeleteCurrency()
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_code'], 'BHD');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotEmpty($recordModel->getName(), 'Expected name is not empty');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('currency_code'), 'Instance should contain field `currency_code`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testNonmappedRecord->has('currencyid'), 'Instance should contain field `currencyid`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_status', 'Active');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_code', 'BHD');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotFalse($row, 'No record id: ' . self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_status', 'No');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_symbol'], '$');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function testRecordModel()
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotNull(\Settings_Currency_Record_Model::getInstance($recordModel->getName()), 'Expected record model instance.');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('conversion_rate'), 'Instance should contain field `conversion_rate`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertInstanceOf('Settings_Currency_Record_Model', $testNonmappedRecord, 'Instance type mismatch');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $allNonmappedRecords = \Settings_Currency_Record_Model::getAllNonMapped();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_symbol'), 'Instance should contain field `currency_symbol`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_status'], 'Active');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->logs = $row;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_status'], 'No');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $basicListQuery = $model->getBasicListQuery();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_code'), 'Instance should contain field `currency_code`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotNull(self::$id, 'Id is null');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $row = (new \App\Db\Query())->from('vtiger_currency_info')->where(['id' => self::$id])->one();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->logs = $row;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('conversion_rate', 0.65);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_code', 'ARS');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('currency_status'), 'Instance should contain field `currency_status`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['id' => self::$id, 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_name', 'Bahrain');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function testEditCurrency()
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_symbol', 'BD');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         */
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotFalse($row, 'No record id: ' . self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            self::$id = $recordModel->save();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertIsArray($recordModel->getRecordLinks(), 'Expected that record links is always array type');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($recordModel->getDeleteStatus(), 0, 'Expected that delete status of record is 0');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertNotEmpty($allNonmappedRecords, 'Expected that all non mapped records result is not empty');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            if ($testNonmappedRecord) {
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            \Settings_Currency_Module_Model::delete(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel = new \Settings_Currency_Record_Model();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame($row['currency_code'], 'ARS');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertInstanceOf('\App\Db\Query', $basicListQuery, 'Query object expected.');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $allRecords = \Settings_Currency_Record_Model::getAll();
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testRecord->has('id'), 'Instance should contain field `id`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->logs = $testNonmappedRecord;
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['currency_name' => 'Argentina', 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->assertSame((float) $row['conversion_rate'], 1.65);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel = \Settings_Currency_Record_Model::getInstance(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel->set('currency_name', 'Argentina');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $model = \Settings_Currency_ListView_Model::getInstance('Settings:Currency');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Testing Record model functions.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $recordModel = \Settings_Currency_Record_Model::getInstance(self::$id);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

            $testNonmappedRecord = \array_pop($allNonmappedRecords);
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_name'), 'Instance should contain field `currency_name`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Testing deletet currency creation.
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 142 characters
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['id' => self::$id, 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 135 characters
    Open

            $this->assertNotNull(\Settings_Currency_Record_Model::getInstance($recordModel->getName()), 'Expected record model instance.');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 123 characters
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_name'), 'Instance should contain field `currency_name`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 155 characters
    Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_currency_info')->where(['and', ['currency_name' => 'Argentina', 'deleted' => 1]])->exists());
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 127 characters
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_symbol'), 'Instance should contain field `currency_symbol`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    Line exceeds 120 characters; contains 123 characters
    Open

                $this->assertTrue($testNonmappedRecord->has('currency_code'), 'Instance should contain field `currency_code`');
    Severity: Minor
    Found in tests/Settings/Currency.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status