Add PHPUnit tests for methods in ViewAction::class
authorAlangi Derick <alangiderick@gmail.com>
Tue, 20 Nov 2018 16:35:47 +0000 (17:35 +0100)
committerAlangi Derick <alangiderick@gmail.com>
Tue, 20 Nov 2018 17:13:50 +0000 (18:13 +0100)
commit5d8fda717d556aefaa0154928d35288a7d98f23f
tree519bb65faf30e8f64c100cca1d5364dc4a05177c
parentd79f256590243e52c8bebd3ad635c73b8abb0498
Add PHPUnit tests for methods in ViewAction::class

* makeViewActionClassFactory() - helper function to create an
  instance of the ViewAction class and return it.
* testGetName() - covers the getName() method in ViewAction class.
* testOnView() - covers the onView() method in ViewAction class.

Change-Id: I1c84c8f51d96386196a1c0b44a209f90ddd8e716
tests/phpunit/includes/actions/ViewActionTest.php [new file with mode: 0644]