Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gmap
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
gmap
Commits
6b62ed53
Commit
6b62ed53
authored
14 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
Convert gmap tests to unit tests for a nice speed boost.
parent
369c1476
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/gmap.test
+4
-3
4 additions, 3 deletions
tests/gmap.test
with
4 additions
and
3 deletions
tests/gmap.test
+
4
−
3
View file @
6b62ed53
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Unit tests for gmap.module.
* Unit tests for gmap.module.
*/
*/
class
GMapSimpleAPITest
extends
Drupal
Web
TestCase
{
class
GMapSimpleAPITest
extends
Drupal
Unit
TestCase
{
function
getInfo
()
{
function
getInfo
()
{
return
array
(
return
array
(
'name'
=>
'GMap API sanity checks'
,
'name'
=>
'GMap API sanity checks'
,
...
@@ -42,7 +42,7 @@ class GMapSimpleAPITest extends DrupalWebTestCase {
...
@@ -42,7 +42,7 @@ class GMapSimpleAPITest extends DrupalWebTestCase {
}
}
}
}
class
GMapMacroTest
extends
Drupal
Web
TestCase
{
class
GMapMacroTest
extends
Drupal
Unit
TestCase
{
function
getInfo
()
{
function
getInfo
()
{
return
array
(
return
array
(
'name'
=>
'GMap Macro checks'
,
'name'
=>
'GMap Macro checks'
,
...
@@ -75,7 +75,8 @@ class GMapMacroTest extends DrupalWebTestCase {
...
@@ -75,7 +75,8 @@ class GMapMacroTest extends DrupalWebTestCase {
$this
->
assertEqual
(
$b
[
'foobehavior'
],
TRUE
,
t
(
'Testing +behavior'
));
$this
->
assertEqual
(
$b
[
'foobehavior'
],
TRUE
,
t
(
'Testing +behavior'
));
$this
->
assertEqual
(
$b
[
'barbehavior'
],
TRUE
,
t
(
'Testing another +behavior'
));
$this
->
assertEqual
(
$b
[
'barbehavior'
],
TRUE
,
t
(
'Testing another +behavior'
));
$this
->
assertEqual
(
$b
[
'bazbehavior'
],
FALSE
,
t
(
'Testing -behavior'
));
$this
->
assertEqual
(
$b
[
'bazbehavior'
],
FALSE
,
t
(
'Testing -behavior'
));
$this
->
assertEqual
(
count
(
$b
),
3
,
t
(
'Testing for leaked default flags'
));
// NOT passing through default flags was a bug.
//$this->assertEqual(count($b), 3, t('Testing for leaked default flags'));
}
}
function
testMacroRenamedDirectives
()
{
function
testMacroRenamedDirectives
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment