We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce001f2 commit eb609b1Copy full SHA for eb609b1
src/Codeception/Lib/Connector/Yii2.php
@@ -142,13 +142,13 @@ public function findAndLoginUser(int|string|IdentityInterface $user): void
142
$identity = $user;
143
} else {
144
// class name implementing IdentityInterface
145
- $identityClass = $user->identityClass;
+ $identityClass = $userComponent->identityClass;
146
$identity = call_user_func([$identityClass, 'findIdentity'], $user);
147
if (!isset($identity)) {
148
throw new \RuntimeException('User not found');
149
}
150
151
- $user->login($identity);
+ $userComponent->login($identity);
152
153
154
/**
0 commit comments