@@ -6,16 +6,13 @@ namespace DotNetNuke.Tests.Core.Common;
6
6
7
7
using System ;
8
8
using System . Collections . Generic ;
9
- using System . Web . Caching ;
10
9
using DotNetNuke . Abstractions ;
11
10
using DotNetNuke . Abstractions . Application ;
12
- using DotNetNuke . Abstractions . Portals ;
13
11
using DotNetNuke . Abstractions . Settings ;
14
12
using DotNetNuke . Common ;
15
13
using DotNetNuke . Common . Utilities ;
16
14
using DotNetNuke . ComponentModel ;
17
15
using DotNetNuke . Entities ;
18
- using DotNetNuke . Entities . Controllers ;
19
16
using DotNetNuke . Entities . Portals ;
20
17
using DotNetNuke . Services . Cryptography ;
21
18
using DotNetNuke . Tests . Utilities . Fakes ;
@@ -149,24 +146,24 @@ public void GetParameterValueReturnsEntireStringIfStartsWithEqualsSign()
149
146
public void ClosePopUpGeneratesAJavaScriptUrlWithValues ( )
150
147
{
151
148
var result = UrlUtils . ClosePopUp ( false , "/hello" , false ) ;
152
- Assert . That ( result , Is . EqualTo ( """ javascript:dnnModal.closePopUp(false, " /hello")"" " ) ) ;
149
+ Assert . That ( result , Is . EqualTo ( "javascript:dnnModal.closePopUp(false, ' /hello') " ) ) ;
153
150
154
151
result = UrlUtils . ClosePopUp ( true , "blah" , false ) ;
155
- Assert . That ( result , Is . EqualTo ( """ javascript:dnnModal.closePopUp(true, " blah")"" " ) ) ;
152
+ Assert . That ( result , Is . EqualTo ( "javascript:dnnModal.closePopUp(true, ' blah') " ) ) ;
156
153
}
157
154
158
155
[ Test ]
159
156
public void ClosePopUpGeneratesAScriptWhenOnClickEventIsTrue ( )
160
157
{
161
158
var result = UrlUtils . ClosePopUp ( false , "/somewhere" , true ) ;
162
- Assert . That ( result , Is . EqualTo ( """ dnnModal.closePopUp(false, " /somewhere")"" " ) ) ;
159
+ Assert . That ( result , Is . EqualTo ( "dnnModal.closePopUp(false, ' /somewhere') " ) ) ;
163
160
}
164
161
165
162
[ Test ]
166
163
public void ClosePopUpEncodesUrlParameter ( )
167
164
{
168
165
var result = UrlUtils . ClosePopUp ( false , "/somewhere?value=%20hi&two='hey'" , true ) ;
169
- Assert . That ( result , Is . EqualTo ( """dnnModal.closePopUp(false, " /somewhere?value=%20hi\u0026two=\u0027hey\u0027" )""" ) ) ;
166
+ Assert . That ( result , Is . EqualTo ( """dnnModal.closePopUp(false, ' /somewhere?value=%20hi\u0026two=\u0027hey\u0027' )""" ) ) ;
170
167
}
171
168
172
169
[ Test ]
0 commit comments