mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
[DOCS] Member::logInAs is not a valid example
Member::logInAs doesn't exist as a static function. Additionally, `logInAs` does exist as a function in SapphireTest.php, so, should this be updated to also use `Member::actAs` for consistency?
This commit is contained in:
parent
5952a7ce71
commit
e80f1b2b83
@ -790,7 +790,7 @@ class Member extends DataObject
|
|||||||
*
|
*
|
||||||
* E.g.
|
* E.g.
|
||||||
* <code>
|
* <code>
|
||||||
* Member::logInAs(Security::findAnAdministrator(), function() {
|
* Member::actAs(Security::findAnAdministrator(), function() {
|
||||||
* $record->write();
|
* $record->write();
|
||||||
* });
|
* });
|
||||||
* </code>
|
* </code>
|
||||||
|
Loading…
Reference in New Issue
Block a user