Skip to content

Commit 215d3ee

Browse files
committed
Add failing integration test
1 parent 87e7128 commit 215d3ee

File tree

1 file changed

+13
-0
lines changed
  • src/app/code/community/IntegerNet/Solr/Test/Model/Indexer

1 file changed

+13
-0
lines changed

src/app/code/community/IntegerNet/Solr/Test/Model/Indexer/Product.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,17 @@ public function invalidSwapConfigurationShouldThrowException(array $config)
3535
Mage::helper('integernet_solr')->factory()->getProductIndexer()->reindex();
3636
}
3737

38+
/**
39+
* @test
40+
* @loadFixture catalog
41+
*/
42+
public function saveProductShouldUpdateSolrIndex()
43+
{
44+
$this->setCurrentStore(0);
45+
$this->adminSession();
46+
$productId = 1;
47+
$product = Mage::getModel('catalog/product')->load($productId);
48+
$product->setData('name', 'Product One SUPERDUPER');
49+
$product->save();
50+
}
3851
}

0 commit comments

Comments
 (0)