Browse files

allow the Product to be set when an Item is constructed

  • Loading branch information...
1 parent 0eef320 commit d29d05b93e466a795930aedbd38e85d06a7e89bd @iampersistent iampersistent committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/Entity/Order/ItemTest.php
View
2 tests/Entity/Order/ItemTest.php
@@ -54,7 +54,7 @@ public function testOptionMethods()
$this->assertEmpty($item->getOptions());
$rmSetProduct->invokeArgs($item, array($this->createProductOptionValidate(false)));
- $this->setExpectedException('Vespolina\Entity\Exception\InvalidOptionsException');
+ $this->setExpectedException('Vespolina\Exception\InvalidOptionsException');
$rmSetOptions->invokeArgs($item, array('failure' => 0));
$this->assertEmpty($item->getOptions(), 'nothing should be added if the validation fails');
}

0 comments on commit d29d05b

Please sign in to comment.