1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

Implement token-based auth API

This commit is contained in:
Toby Zerner
2015-01-22 14:44:33 +10:30
parent 74c9b48870
commit ad269fdb5a
11 changed files with 194 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
<?php //[STAMP] 56e5f4700a805fa943ff8199ddb69b69
<?php //[STAMP] 93c972ae47d60c70b9045d971476f0bc
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
@@ -3029,4 +3029,37 @@ class ApiTester extends \Codeception\Actor
public function fail($message) {
return $this->scenario->runStep(new \Codeception\Step\Action('fail', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
*
* @see \Codeception\Module\ApiHelper::haveAnAccount()
*/
public function haveAnAccount($data = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('haveAnAccount', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
*
* @see \Codeception\Module\ApiHelper::login()
*/
public function login($identifier, $password) {
return $this->scenario->runStep(new \Codeception\Step\Action('login', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
*
* @see \Codeception\Module\ApiHelper::amAuthenticated()
*/
public function amAuthenticated() {
return $this->scenario->runStep(new \Codeception\Step\Condition('amAuthenticated', func_get_args()));
}
}