Answer the question
In order to leave comments, you need to log in
What is the meaning of assert_that in this context?
In Yii2 standard tests, I saw such a test
public function testFindUserByAccessToken()
{
expect_that($user = User::findIdentityByAccessToken('100-token'));
expect($user->username)->equals('admin');
expect_not(User::findIdentityByAccessToken('non-existing'));
}
expect_that($user = User::findIdentityByAccessToken('100-token'));
$user = User::findIdentityByAccessToken('100-token');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question