File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 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-
133123it ('adds a script with global variable name ' , function () {
134124 asAdmin ()
135125 ->navigate ('http://localhost:8100/wp-admin/options-general.php?page=simpleanalytics&tab=advanced ' )
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+ });
You can’t perform that action at this time.
0 commit comments