add phpdoc for FunctionalTester

This commit is contained in:
Florian Bosdorff 2019-11-23 23:09:39 +01:00
parent e416aef618
commit b5257c0e66
1 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,9 @@ class FunctionalTester extends \Codeception\Actor
* Define custom actions here
*/
/**
* Login as default administrator
*/
public function loginAsAdmin(): void
{
$I = $this;
@ -37,6 +40,12 @@ class FunctionalTester extends \Codeception\Actor
$I->seeAuthentication('admin');
}
/**
* Go to a specific route and check if admin guard is applied on it
*
* @param string $name name of the route
* @param array|null $params params the route will be created with
*/
public function amOnAdminRoute(string $name, array $params = null): void
{
$I = $this;