Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.36, Sun Oct 18 13:36:01 2009 UTC | revision 1.37, Sun Oct 18 21:28:23 2009 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | // $Id: coder_review_7x.test,v 1.35 2009/09/26 23:28:00 sun Exp $ | // $Id: coder_review_7x.test,v 1.36 2009/10/18 13:36:01 snpower Exp $ |
| 3 | ||
| 4 | /** | /** |
| 5 | * @file | * @file |
| # | Line 186 class CoderReviewUpgrade7xTest extends C | Line 186 class CoderReviewUpgrade7xTest extends C |
| 186 | function testMenu7x() { | function testMenu7x() { |
| 187 | // N/A - http://drupal.org/node/224333#international_item | // N/A - http://drupal.org/node/224333#international_item |
| 188 | ||
| // http://drupal.org/node/224333#menu_file_path | ||
| $this->assertCoderReviewFail(" function mymodule_menu() {\n \$items['foo'] = array(\n 'file' => 'foo.inc');\n}"); | ||
| $this->assertCoderReviewFail(" function mymodule_menu() {\n \$items['foo'] = array(\n 'file path' => 'includes/');\n}"); | ||
| $this->assertCoderReviewPass(" function mymodule_menu() {\n \$items['foo'] = array(\n 'filepath' => 'foo');\n}"); | ||
| $this->assertCoderReviewFail(" function mymodule_theme() {\n \$theme['foo'] = array(\n 'file' => 'foo.inc');\n}"); | ||
| $this->assertCoderReviewFail(" function mymodule_theme() {\n \$theme['foo'] = array(\n 'path' => 'includes/');\n}"); | ||
| $this->assertCoderReviewPass(" function mymodule_theme() {\n \$theme['foo'] = array(\n 'filepath' => 'foo');\n}"); | ||
| 189 | // http://drupal.org/node/224333#menu_callback_array | // http://drupal.org/node/224333#menu_callback_array |
| 190 | ||
| 191 | // http://drupal.org/node/224333#hook_menu_link_alter | // http://drupal.org/node/224333#hook_menu_link_alter |
| # | Line 213 class CoderReviewUpgrade7xTest extends C | Line 205 class CoderReviewUpgrade7xTest extends C |
| 205 | $this->assertCoderReviewFail(" function mymodule_block(\$delta, \$edit) {\n switch (\$op) {\n case 'list':\n }\n}"); | $this->assertCoderReviewFail(" function mymodule_block(\$delta, \$edit) {\n switch (\$op) {\n case 'list':\n }\n}"); |
| 206 | ||
| 207 | // http://drupal.org/node/224333#hook_block_list_alter | // http://drupal.org/node/224333#hook_block_list_alter |
| 208 | $this->assertCoderReviewPass(' mymodule_block_list_alter(&$blocks)'); | |
| 209 | } | } |
| 210 | ||
| 211 | function testComments7x() { | function testComments7x() { |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |