Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 6, 2021

Conversation

svera
Copy link
Contributor

@svera svera commented Oct 6, 2021

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
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
@svera
Copy link
Contributor Author

svera commented Oct 6, 2021

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

@m2-github-services
Copy link
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