Skip to main content
Rollback to Revision 1
Source Link
Fabian Schmengler
  • 66.1k
  • 25
  • 188
  • 422

Magento 2 : Setup Scripts Fail Integration Testscripts fail integration tests in Magento2

I have setup integration tests for app/code that was working fine.

Now I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of the project. When running integration tests it will fail with the exception: Wrong entity ID

This happens when the setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Magento 2 : Setup Scripts Fail Integration Test

I have setup integration tests for app/code that was working fine.

I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of project. When running integration tests it will fail with exception: Wrong entity ID

This happens when setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Setup scripts fail integration tests in Magento2

I have setup integration tests for app/code that was working fine.

Now I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of the project. When running integration tests it will fail with the exception: Wrong entity ID

This happens when the setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Improved explaination And Title And Add Tag
Source Link
Dhiren Vasoya
  • 9.5k
  • 12
  • 35
  • 59

Magento 2 : Setup scripts fail integration tests in Magento2Scripts Fail Integration Test

I have setup integration tests for app/code that was working fine.

Now I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of the project. When running integration tests it will fail with the exception: Wrong entity ID

This happens when the setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Setup scripts fail integration tests in Magento2

I have setup integration tests for app/code that was working fine.

Now I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of the project. When running integration tests it will fail with the exception: Wrong entity ID

This happens when the setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Magento 2 : Setup Scripts Fail Integration Test

I have setup integration tests for app/code that was working fine.

I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of project. When running integration tests it will fail with exception: Wrong entity ID

This happens when setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?

Source Link
Domeglic
  • 542
  • 6
  • 21

Setup scripts fail integration tests in Magento2

I have setup integration tests for app/code that was working fine.

Now I have a module that adds some product attributes in a setup script, it doesn't have any tests but it is part of the project. When running integration tests it will fail with the exception: Wrong entity ID

This happens when the setup does this:
$eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attributeDefinition);

The error happens because table eav_entity_type is empty for some reason. what am I missing something here?