adds check for the right methods of session api
This commit is contained in:
parent
5d58aaee1c
commit
6b36364b99
@ -18,6 +18,7 @@ public class SessionApiTests : ApiTestsBase
|
||||
public async Task Login_should_set_cookies_and_session()
|
||||
{
|
||||
await LoginAsync();
|
||||
CorrectMethodShouldGetCalled("pwg.session.login");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -39,6 +40,7 @@ public class SessionApiTests : ApiTestsBase
|
||||
|
||||
status.Should().NotBeNull();
|
||||
status.Username.Should().Be("admin");
|
||||
CorrectMethodShouldGetCalled("pwg.session.getStatus");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -50,6 +52,7 @@ public class SessionApiTests : ApiTestsBase
|
||||
|
||||
await _sessionApi.LogoutAsync();
|
||||
Context.IsLoggedIn.Should().BeFalse();
|
||||
CorrectMethodShouldGetCalled("pwg.session.logout");
|
||||
}
|
||||
|
||||
private async Task LoginAsync()
|
||||
|
Loading…
Reference in New Issue
Block a user