DrupalBin
Submit Code
About
Recent Posts
admin settings not saving
23 min 32 sec
ago
Code
1 hour 6 min
ago
Code
1 hour 22 min
ago
css path
3 hours 6 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for Fix for A more awesome solution
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
<?php class MyAwesomeTestCase extends DrupalWebTestCase { function testAwesomeness() { $awesome = $this->drupalGet('awesome_page'); $this->assertIdentical($awesome, 'dmitrig01'); } function hook_menu() { $items = array(); $items['awesome_page'] = array( 'page callback' => 'MyAwesomeTestCase_printAwesomestPerson', 'access arguments' => TRUE, ); return $items; } } function MyAwesomeTestCase_printAwesomestPerson() { exit('dmitrig01'); }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.