Skip to content

Commit 759c27b

Browse files
committed
wip
1 parent 09210ee commit 759c27b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/Browser/PluginSettingsTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@
120120
visit('http://localhost:8100')->assertSourceHas('data-onload="sa_event(\"My event\")"');
121121
});
122122

123-
it('adds a script with overwrite domain name', function () {
124-
asAdmin()
125-
->navigate('http://localhost:8100/wp-admin/options-general.php?page=simpleanalytics&tab=advanced')
126-
->fill('simpleanalytics_hostname', 'example.com')
127-
->click('Save Changes')
128-
->assertValue('simpleanalytics_hostname', 'example.com');
129-
130-
visit('http://localhost:8100')->assertSourceHas('data-hostname="example.com"');
131-
});
132-
133123
it('adds a script with global variable name', function () {
134124
asAdmin()
135125
->navigate('http://localhost:8100/wp-admin/options-general.php?page=simpleanalytics&tab=advanced')
@@ -209,3 +199,13 @@
209199

210200
visit('http://localhost:8100')->assertSourceHas('data-sa-global="ba_event"');
211201
});
202+
203+
it('adds a script with overwrite domain name', function () {
204+
asAdmin()
205+
->navigate('http://localhost:8100/wp-admin/options-general.php?page=simpleanalytics&tab=advanced')
206+
->fill('simpleanalytics_hostname', 'example.com')
207+
->click('Save Changes')
208+
->assertValue('simpleanalytics_hostname', 'example.com');
209+
210+
visit('http://localhost:8100')->assertSourceHas('data-hostname="example.com"');
211+
});

0 commit comments

Comments
 (0)