@@ -14,7 +14,7 @@ class NestedAttributeTest extends \PHPUnit_Framework_TestCase {
1414
1515 public function testInstanceOf () {
1616 $ mock = $ this ->getMockBuilder (AttributeAccessor::class)
17- ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " ])
17+ ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " , " setValidateRule " , " setCastRule " , " validate " ])
1818 ->getMock ();
1919
2020 $ nestedAttr = new NestedAttribute ($ mock );
@@ -24,7 +24,7 @@ public function testInstanceOf() {
2424
2525 public function testGetValue () {
2626 $ mock = $ this ->getMockBuilder (AttributeAccessor::class)
27- ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " ])
27+ ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " , " setValidateRule " , " setCastRule " , " validate " ])
2828 ->getMock ();
2929
3030 $ mock ->method ("getValue " )->willReturn ("mockValue " );
@@ -38,7 +38,7 @@ public function testGetValue() {
3838
3939 public function testCastValue () {
4040 $ mock = $ this ->getMockBuilder (AttributeAccessor::class)
41- ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " ])
41+ ->setMethods (["getValue " , "cast " , "withoutCasting " , "withCasting " , "setValue " , " setValidateRule " , " setCastRule " , " validate " ])
4242 ->getMock ();
4343
4444 $ mock ->method ("cast " )->willReturn ("mockValue " );
0 commit comments