add phpdoc for FunctionalTester
This commit is contained in:
parent
e416aef618
commit
b5257c0e66
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue