Skip to content

Commit

Permalink
PR #62: Amend mock to expect save to be called on the resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
punkstar committed Aug 22, 2014
1 parent e7876c0 commit a0a2163
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/MageTest/MagentoExtension/Fixture/ProductSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ function let()

$productResourceModel = \Mockery::mock('Mage_Catalog_Model_Resource_Product');
$productResourceModel->shouldReceive('getEntityType')->andReturn($entityType);
$productResourceModel->shouldReceive('save')->andReturnSelf();

$this->model->shouldReceive('getResource')->andReturn($productResourceModel)->ordered();
$this->model->shouldReceive('getResource')->andReturn($productResourceModel);
$this->model->shouldReceive('getAttributes')->andReturn(array());
}

Expand Down

0 comments on commit a0a2163

Please sign in to comment.