@@ -24,7 +24,6 @@ struct EditorConfigurationBuilderTests {
24
24
#expect( builder. editorSettings. isEmpty)
25
25
#expect( builder. locale == " en " )
26
26
#expect( builder. editorAssetsEndpoint == nil )
27
- #expect( builder. cookies == [ ] )
28
27
}
29
28
30
29
@Test ( " Editor Configuration to Builder " )
@@ -46,7 +45,6 @@ struct EditorConfigurationBuilderTests {
46
45
. setEditorSettings ( [ " foo " : " bar " ] )
47
46
. setLocale ( " fr " )
48
47
. setEditorAssetsEndpoint ( URL ( string: " https://example.com/wp-content/plugins/gutenberg/build/ " ) )
49
- . setCookies ( [ HTTPCookie ( properties: [ . name: " foo " , . value: " bar " , . domain: " example.com " , . path: " / " ] ) !] )
50
48
. build ( ) // Convert to a configuration
51
49
. toBuilder ( ) // Then back to a builder (to test the configuration->builder logic)
52
50
. build ( ) // Then back to a configuration to examine the results
@@ -67,7 +65,6 @@ struct EditorConfigurationBuilderTests {
67
65
#expect( configuration. editorSettingsJSON == #"{"foo":"bar"}"# )
68
66
#expect( configuration. locale == " fr " )
69
67
#expect( configuration. editorAssetsEndpoint == URL ( string: " https://example.com/wp-content/plugins/gutenberg/build/ " ) )
70
- #expect( configuration. cookies == [ HTTPCookie ( properties: [ . name: " foo " , . value: " bar " , . domain: " example.com " , . path: " / " ] ) !] )
71
68
}
72
69
73
70
@Test ( " Sets Title Correctly " )
@@ -172,9 +169,4 @@ struct EditorConfigurationBuilderTests {
172
169
func editorConfigurationBuilderSetsEditorAssetsEndpointCorrectly( ) throws {
173
170
#expect( EditorConfigurationBuilder ( ) . setEditorAssetsEndpoint ( URL ( string: " https://example.com/wp-content/plugins/gutenberg/build/ " ) ) . build ( ) . editorAssetsEndpoint == URL ( string: " https://example.com/wp-content/plugins/gutenberg/build/ " ) )
174
171
}
175
-
176
- @Test ( " Sets cookies Correctly " )
177
- func editorConfigurationBuilderSetsCookiesCorrectly( ) throws {
178
- #expect( EditorConfigurationBuilder ( ) . setCookies ( [ HTTPCookie ( properties: [ . name: " foo " , . value: " bar " , . domain: " example.com " , . path: " / " ] ) !] ) . build ( ) . cookies == [ HTTPCookie ( properties: [ . name: " foo " , . value: " bar " , . domain: " example.com " , . path: " / " ] ) !] )
179
- }
180
172
}
0 commit comments