Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ModelTest extends TestCase
- {
- public function getModelMock ()
- {
- // The key is the null value to setMethod (default is [] which mocks all methods).
- $model = $this->getMockBuilder(FieldPaletteModel::class)->setMethods(null)->disableOriginalConstructor()->getMock();
- }
- }
Add Comment
Please, Sign In to add comment