Fixed URLs for request handler tests.

This commit is contained in:
Damian Büchel 2021-04-16 19:05:46 +02:00
parent 2d1d3d9dde
commit 68f4349a4d

View file

@ -107,7 +107,7 @@ namespace SafeExamBrowser.Browser.UnitTests.Handlers
{
var eventFired = false;
var request = new Mock<IRequest>();
var url = "www.test.org";
var url = "https://www.test.org";
filter.Setup(f => f.Process(It.Is<Request>(r => r.Url.Equals(url)))).Returns(FilterResult.Block);
request.SetupGet(r => r.ResourceType).Returns(ResourceType.MainFrame);
@ -140,7 +140,7 @@ namespace SafeExamBrowser.Browser.UnitTests.Handlers
{
var eventFired = false;
var request = new Mock<IRequest>();
var url = "www.test.org";
var url = "https://www.test.org";
filter.Setup(f => f.Process(It.Is<Request>(r => r.Url.Equals(url)))).Returns(FilterResult.Block);
request.SetupGet(r => r.ResourceType).Returns(ResourceType.SubFrame);