Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning No tests found in class "NodeWebTestCase" #6

Open
jhedstrom opened this issue Mar 27, 2012 · 0 comments
Open

Warning No tests found in class "NodeWebTestCase" #6

jhedstrom opened this issue Mar 27, 2012 · 0 comments

Comments

@jhedstrom
Copy link
Contributor

When trying to run .test files that contain a class that doesn't define any tests, PHPUnit skips the rest of the tests in that file, with the warning "Warning No tests found in class "FooTestCase".

Adding a test() method to the class resolves the issue, but I wonder if there is a flag or option in PHPUnit so this wouldn't be necessary?

diff --git a/core/modules/node/node.test b/core/modules/node/node.test
index 1dbcaf3..688b828 100644
--- a/core/modules/node/node.test
+++ b/core/modules/node/node.test
@@ -22,6 +22,8 @@ class NodeWebTestCase extends DrupalWebTestCase {
       $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
     }
   }
+
+  function test() {}
 }

/**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant