Guest User

Untitled

a guest
Sep 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public function testSave()
  2. {
  3. $this->pageResource->expects($this->once())
  4. ->method('save')
  5. ->with($this->page)
  6. ->willReturnSelf();
  7. $this->assertEquals($this->page, $this->repository->save($this->page));
  8. }
  9.  
  10. vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/yourVendor/yourModule/Test/Unit/
  11.  
  12. vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/yourVendor/yourModule/Test/Unit/
  13.  
  14. bin/magento dev:tests:run unit
  15.  
  16. MagentoCmsTestUnitModelPageRepositoryTest
Add Comment
Please, Sign In to add comment