Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

PatternRunTestCase -> PatternsTestCase

  • Loading branch information...
commit 6cfa261d9ed5393238f6e7f80f916fe5ecc75130 1 parent 6ac119f
@shakty authored
View
2  tests/block/block.test
@@ -4,7 +4,7 @@
* SimpleTests for the Block component of Patterns.
*/
-class PatternsBlockTestCase extends PatternRunTestCase {
+class PatternsBlockTestCase extends PatternsTestCase {
var $block_tests_dir;
View
2  tests/color/color.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsColorTestCase extends PatternRunTestCase {
+class PatternsColorTestCase extends PatternsTestCase {
var $color_tests_dir;
View
2  tests/field/field.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsFieldTestCase extends PatternRunTestCase {
+class PatternsFieldTestCase extends PatternsTestCase {
var $field_tests_dir;
View
3  tests/general/general.test
@@ -5,7 +5,7 @@
* General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.
*/
-class PatternsGeneralTestCase extends PatternRunTestCase {
+class PatternsGeneralTestCase extends PatternsTestCase {
public static function getInfo() {
return array(
'name' => 'General test',
@@ -31,6 +31,7 @@ class PatternsGeneralTestCase extends PatternRunTestCase {
}
+ // TODO: move this inside a YAML Parser test
function testSpyc() {
// Login the site administrator.
$this->drupalLogin($this->adm_user);
View
4 tests/importing/importing.test
@@ -4,7 +4,7 @@
* Tests importing files.
*/
-class PatternsImportTestCase extends PatternRunTestCase {
+class PatternsImportTestCase extends PatternsTestCase {
const REMOTE_URL_IMPORT = 'http://www.shakty.org/patterns/importing.yaml';
@@ -73,7 +73,7 @@ class PatternsImportTestCase extends PatternRunTestCase {
$name = 'Test_Import_From_URL';
$destination = patterns_path_get_files_dir();
- if (!$this->is_fopenurl_enabled()) {
+ if (!$this->isFopenurlEnabled()) {
$this->pass(t('Import from URL test skipped because \'allow_url_fopen\' is disabled.'));
return;
}
View
2  tests/menu/menu.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsMenuTestCase extends PatternRunTestCase {
+class PatternsMenuTestCase extends PatternsTestCase {
var $menu_tests_dir;
View
2  tests/node/content.test
@@ -4,7 +4,7 @@
* SimpleTests for the Node component of Patterns (Content Types).
*/
-class PatternsContentTypeTestCase extends PatternRunTestCase {
+class PatternsContentTypeTestCase extends PatternsTestCase {
var $node_tests_dir;
View
2  tests/node/node.test
@@ -4,7 +4,7 @@
* SimpleTests for the Node component of Patterns (Node).
*/
-class PatternsNodeTestCase extends PatternRunTestCase {
+class PatternsNodeTestCase extends PatternsTestCase {
var $node_tests_dir;
View
2  tests/parser/parser.test
@@ -4,7 +4,7 @@
* SimpleTests for the Taxonomy component of Patterns.
*/
-class PatternsParserTestCase extends PatternRunTestCase {
+class PatternsParserTestCase extends PatternsTestCase {
var $parser_tests_dir;
View
2  tests/pathauto/pathauto.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsPathautoTestCase extends PatternRunTestCase {
+class PatternsPathautoTestCase extends PatternsTestCase {
var $pathauto_tests_dir;
View
12 tests/patterns.test
@@ -3,7 +3,7 @@
/**
* Abstract base class for testing pattern component behavior.
*/
-abstract class PatternRunTestCase extends DrupalWebTestCase {
+abstract class PatternsTestCase extends DrupalWebTestCase {
/**
* Returns the path to the tests directory inside the
@@ -117,7 +117,9 @@ abstract class PatternRunTestCase extends DrupalWebTestCase {
}
/**
- * Scans a directory for patterns files and executes them.
+ * Scans a directory for patterns files, and executes them.
+ *
+ * @param mixed $dir The path to the directory to scan
*
*/
function runDir($dir) {
@@ -146,7 +148,7 @@ abstract class PatternRunTestCase extends DrupalWebTestCase {
/**
* Loads all the pattern files from a directory
- * and executes a callback on each of those.
+ * and executes a callback on each parsed pattern.
*
* The parser is chosen based on the extension of the files
* in the folder.
@@ -222,10 +224,10 @@ abstract class PatternRunTestCase extends DrupalWebTestCase {
* Checks if during the Web execution fopenurl is enabled.
*
* Notice: patterns_utils_is_fopenurl_enabled cannot be used
- * because it returns the value for the cli.
+ * because it does not work with drush (returns the value of cli).
*
*/
- public function is_fopenurl_enabled() {
+ public function isFopenurlEnabled() {
// View patterns list.
$this->drupalGet('admin/patterns/import/url');
$this->assertResponse(200);
View
2  tests/shortcut/shortcut.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsShortcutTestCase extends PatternRunTestCase {
+class PatternsShortcutTestCase extends PatternsTestCase {
var $shortcut_tests_dir;
View
2  tests/system/system.test
@@ -4,7 +4,7 @@
* SimpleTests for the System component of Patterns.
*/
-class PatternsSystemTestCase extends PatternRunTestCase {
+class PatternsSystemTestCase extends PatternsTestCase {
var $system_tests_dir;
View
2  tests/taxonomy/taxonomy.test
@@ -4,7 +4,7 @@
* SimpleTests for the Taxonomy component of Patterns.
*/
-class PatternsTaxonomyTestCase extends PatternRunTestCase {
+class PatternsTaxonomyTestCase extends PatternsTestCase {
var $taxo_tests_dir;
View
2  tests/toolbar/toolbar.test
@@ -5,7 +5,7 @@
*
*/
-class PatternsToolbarTestCase extends PatternRunTestCase {
+class PatternsToolbarTestCase extends PatternsTestCase {
var $toolbar_tests_dir;
View
2  tests/user/user.test
@@ -5,7 +5,7 @@
* TODO: roles, permissions.
*/
-class PatternsUserTestCase extends PatternRunTestCase {
+class PatternsUserTestCase extends PatternsTestCase {
var $user_tests_dir;
Please sign in to comment.
Something went wrong with that request. Please try again.