Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
G
google_analytics
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
google_analytics
Commits
c7ac59de
Commit
c7ac59de
authored
Jul 25, 2014
by
hass
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync wording with D7
parent
e78ddb90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googleanalytics.test
googleanalytics.test
+3
-3
No files found.
googleanalytics.test
View file @
c7ac59de
...
...
@@ -606,7 +606,7 @@ class GoogleAnalyticsSearchTest extends DrupalWebTestCase {
$this
->
drupalPost
(
'search/node'
,
$search
,
t
(
'Search'
));
$this
->
assertRaw
(
'ga("set", "page", (window.googleanalytics_search_results) ?'
,
'[testGoogleAnalyticsSearch]: Search results tracker is displayed.'
);
// D6 special! D7 and D8 will show it with value 0.
$this
->
assertNoRaw
(
'window.googleanalytics_search_results = 0;'
,
'[testGoogleAnalyticsSearch]: Search
results counter is not displayed
.'
);
$this
->
assertNoRaw
(
'window.googleanalytics_search_results = 0;'
,
'[testGoogleAnalyticsSearch]: Search
yielded no results
.'
);
// Save the node.
$this
->
drupalPost
(
'node/add/page'
,
$edit
,
t
(
'Save'
));
...
...
@@ -617,7 +617,7 @@ class GoogleAnalyticsSearchTest extends DrupalWebTestCase {
$this
->
drupalPost
(
'search/node'
,
$search
,
t
(
'Search'
));
$this
->
assertRaw
(
'ga("set", "page", (window.googleanalytics_search_results) ?'
,
'[testGoogleAnalyticsSearch]: Search results tracker is displayed.'
);
$this
->
assertRaw
(
'window.googleanalytics_search_results = 1;'
,
'[testGoogleAnalyticsSearch]: One search result
s counted
'
);
$this
->
assertRaw
(
'window.googleanalytics_search_results = 1;'
,
'[testGoogleAnalyticsSearch]: One search result
found.
'
);
$this
->
drupalPost
(
'node/add/page'
,
$edit
,
t
(
'Save'
));
$this
->
assertRaw
(
t
(
'@type %title has been created.'
,
array
(
'@type'
=>
'Page'
,
'%title'
=>
$edit
[
'title'
])),
t
(
'Node was created.'
));
...
...
@@ -627,7 +627,7 @@ class GoogleAnalyticsSearchTest extends DrupalWebTestCase {
$this
->
drupalPost
(
'search/node'
,
$search
,
t
(
'Search'
));
$this
->
assertRaw
(
'ga("set", "page", (window.googleanalytics_search_results) ?'
,
'[testGoogleAnalyticsSearch]: Search results tracker is displayed.'
);
$this
->
assertRaw
(
'window.googleanalytics_search_results = 2;'
,
'[testGoogleAnalyticsSearch]: Two search results
counte
d.'
);
$this
->
assertRaw
(
'window.googleanalytics_search_results = 2;'
,
'[testGoogleAnalyticsSearch]: Two search results
foun
d.'
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment