Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Compatibility magento EE1.13 and EE1.14 #253

Open
spras opened this issue Apr 29, 2015 · 2 comments
Open

Compatibility magento EE1.13 and EE1.14 #253

spras opened this issue Apr 29, 2015 · 2 comments

Comments

@spras
Copy link

spras commented Apr 29, 2015

Seem to have problem with product fixtures : the stock status is not well indexed and the product isn't available.

@edi9999
Copy link

edi9999 commented Apr 30, 2015

I'm able to run tests with products on EE1.13 and EE1.14

Here is my yaml:

scope:
  website:
    - website_id: 1
      code: english_website
      name: English Website
      default_group_id: 1
  group:
    - group_id: 1
      website_id: 1
      name: English Store group
      default_store_id: 1
      root_category_id: 1
  store:
    - store_id: 1
      website_id: 1
      group_id: 1
      code: uk
      name: English Store
      is_active: 1
config:
  default/catalog/price/scope: 1
  default/dev/template/allow_symlink: 1
  stores/default/dev/template/allow_symlink: 1
  stores/admin/dev/template/allow_symlink: 1
  stores/french/dev/template/allow_symlink: 1
  stores/german/dev/template/allow_symlink: 1
  websites/admin/dev/template/allow_symlink: 1
  websites/base/dev/template/allow_symlink: 1
  default/carriers/freeshipping/active: 1
  default/payment/fivory/active: 1
  default/payment/fivory/point_of_sale_id: 4444444444
  default/payment/fivory/point_of_sale_key: 4444444444444444444444444444444444444444
eav:
  customer:
    - entity_id: 1
      email: test@gmail.fr
      password_hash: ''
  catalog_product:
    - entity_id: 1
      type_id: simple
      sku: book
      name: Book
      short_description: Book
      description: Book
      attribute_set_id: 4 # Product entity
      url_key: book
      stock:
        qty: 100.00
        is_in_stock: 1
      website_ids:
        - english_website
      /websites:
        english_website:
          special_price: 7.99
      category_ids:
        - 1 # Default Category
      price: 12.99
      tax_class_id: 2 # Taxable Goods
      status: 1 # Enabled
      visibility: 4 # Visible in Catalog & Search

@spras
Copy link
Author

spras commented Apr 30, 2015

Yes, but the product isSalable() method return false

It’s not like this on magento CE or magento EE<1.13 versions.

As a workaround, i do this on the begining of the test and isSalable() returns true.

$product = Mage::getModel('catalog/product')->load(1);
$product->getStockItem()->setQty(100)->save();

I think the stock indexing has changed in theses version and the ecomdev module doesn’t handle it correctly.

Sylvain PRAS.

De : Edgar Hipp <notifications@github.commailto:notifications@github.com>
Répondre à : EcomDev/EcomDev_PHPUnit <reply@reply.github.commailto:reply@reply.github.com>
Date : jeudi 30 avril 2015 15:30
À : EcomDev/EcomDev_PHPUnit <EcomDev_PHPUnit@noreply.github.commailto:EcomDev_PHPUnit@noreply.github.com>
Cc : Sylvain PRAS <sylvain.pras@jetpulp.frmailto:sylvain.pras@jetpulp.fr>
Objet : Re: [EcomDev_PHPUnit] Compatibility magento EE1.13 and EE1.14 (#253)

I'm able to run tests with products on EE1.13 and EE1.14

Here is my yaml:

scope:
website:
- website_id: 1
code: english_website
name: English Website
default_group_id: 1
group:
- group_id: 1
website_id: 1
name: English Store group
default_store_id: 1
root_category_id: 1
store:
- store_id: 1
website_id: 1
group_id: 1
code: uk
name: English Store
is_active: 1
config:
default/catalog/price/scope: 1
default/dev/template/allow_symlink: 1
stores/default/dev/template/allow_symlink: 1
stores/admin/dev/template/allow_symlink: 1
stores/french/dev/template/allow_symlink: 1
stores/german/dev/template/allow_symlink: 1
websites/admin/dev/template/allow_symlink: 1
websites/base/dev/template/allow_symlink: 1
default/carriers/freeshipping/active: 1
default/payment/fivory/active: 1
default/payment/fivory/point_of_sale_id: 4444444444
default/payment/fivory/point_of_sale_key: 4444444444444444444444444444444444444444
eav:
customer:
- entity_id: 1
email: test@netapsys.frmailto:test@netapsys.fr
password_hash: ''
catalog_product:
- entity_id: 1
type_id: simple
sku: book
name: Book
short_description: Book
description: Book
attribute_set_id: 4 # Product entity
url_key: book
stock:
qty: 100.00
is_in_stock: 1
website_ids:
- english_website
/websites:
english_website:
special_price: 7.99
category_ids:
- 1 # Default Category
price: 12.99
tax_class_id: 2 # Taxable Goods
status: 1 # Enabled
visibility: 4 # Visible in Catalog & Search


Reply to this email directly or view it on GitHubhttps://github.com//issues/253#issuecomment-97785827.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants