Permalink
Browse files

add a test to make sure the product ValidationOptions is called

  • Loading branch information...
1 parent 94681fc commit 48a68e4fe5e6ac3b503e59e0a02a5f50da3fe786 @iampersistent iampersistent committed Jul 15, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/Entity/Order/ItemTest.php
View
10 tests/Entity/Order/ItemTest.php
@@ -68,4 +68,14 @@ protected function createProductOptionValidate($returns = true)
return $product;
}
+
+ protected function createProductOptionValidate()
+ {
+ $product = $this->getMock('Vespolina\Entity\Product');
+ $product->expects($this->atLeastOnce())
+ ->method('validateOption')
+ ->will($this->returnValue(true));
+
+ return $product;
+ }
}

0 comments on commit 48a68e4

Please sign in to comment.