Skip to content

AC-683: Create phpcs static check for TableTest - #309

Merged
magento-devops-reposync-svc merged 5 commits into
magento:developfrom
svera:AC-683_tableTest
Oct 6, 2021
Merged

AC-683: Create phpcs static check for TableTest#309
magento-devops-reposync-svc merged 5 commits into
magento:developfrom
svera:AC-683_tableTest

Conversation

@svera

@svera svera commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

Check that references to table names in arrays, method calls and property $_aggregationTable does not contain /

/*3 => 1,
7 => 1,
14 => 1,
28 => 1,*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing, I guess you need to update this list:

1) Magento2\Tests\Legacy\TableNameUnitTest::testSniff
[LINE 3] Expected 0 error(s) in TableNameUnitTest.inc but found 1 error(s). The error(s) found were:
 -> Legacy table names with slash must be fixed to direct table names. Found: '/catalog_category_product' (Magento2.Legacy.TableName.FoundLegacyTableName)
[LINE 7] Expected 0 error(s) in TableNameUnitTest.inc but found 1 error(s). The error(s) found were:
 -> Legacy table names with slash must be fixed to direct table names. Found: '/cataloginventory_stock_item' (Magento2.Legacy.TableName.FoundLegacyTableName)
[LINE 16] Expected 0 error(s) in TableNameUnitTest.inc but found 1 error(s). The error(s) found were:
 -> Legacy table names with slash must be fixed to direct table names. Found: '/is_in_stock' (Magento2.Legacy.TableName.FoundLegacyTableName)
[LINE 20] Expected 0 error(s) in TableNameUnitTest.inc but found 1 error(s). The error(s) found were:
 -> Legacy table names with slash must be fixed to direct table names. Found: 'magento/sample_table' (Magento2.Legacy.TableName.FoundLegacyTableName)
[LINE 38] Expected 0 error(s) in TableNameUnitTest.inc but found 1 error(s). The error(s) found were:
 -> Legacy table names with slash must be fixed to direct table names. Found: 'magento/sales_order_aggregated_updated' (Magento2.Legacy.TableName.FoundLegacyTableName)

loginesta
loginesta previously approved these changes Oct 6, 2021
Comment thread Magento2/Tests/Legacy/TableNameUnitTest.inc Outdated
@svera

svera commented Oct 6, 2021

Copy link
Copy Markdown
Contributor Author

@magento import pr to magento-commerce/magento-coding-standard

@m2-github-services

Copy link
Copy Markdown
Contributor

@svera the Pull Request is successfully imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants