simpletest

$this->curl_options and $curl_options for Upload user picture simpletest

  1. )
  2.   10082 => NULL,
  3.   10002 => 'http://gvs1/7drupal',
  4.   52 => true,
  5.   19913 => true,
  6.   10018 => 'simpletest300270',
  7. )
  8. )
  9.   80 => true,

simpletest array

  1. <?php
  2. // note: this is simpletest drupal 5
  3. $web_user = $this->drupalCreateUserRolePerm(array('cjp_tokens'));
  4. $this->drupalLoginUser($web_user);
  5.    

node.admin.inc test case

  1. class NodeAdminTestCase extends DrupalWebTestCase {
  2.   /**
  3.    * Implementation of getInfo().
  4.    */
  5.   function getInfo() {
  6.     return array(
  7.       'name' => t('Node administration tests'),

Security scanner component for SimpleTest module: taking out a form_id attribute from an hidden field

  1. /**
  2.    *  Implementation of the crawler page.
  3.    */    
  4.   function security_scanner_cron() {
  5.     global $base_url;

backtrace of drupal_access_denied for simpletest security scanner

  1. (
  2.     [0] => Array
  3.         (
  4.             [file] => E:\wamp\www\soc2008\modules\user\user.pages.inc
  5.             [line] => 123
  6.             [function] => drupal_access_denied

Fix for Fix for A more awesome solution

  1. <?php
  2.  
  3. class MyAwesomeTestCase extends DrupalWebTestCase {
  4.   function testAwesomeness() {
  5.     $awesome = $this->drupalGet('awesome_page');
  6.     $this->assertIdentical($awesome, 'cwgordon7');

Fix for Fix for A more awesome solution

  1. <?php
  2.  
  3. class MyAwesomeTestCase extends DrupalWebTestCase {
  4.   function testAwesomeness() {
  5.     $awesome = $this->drupalGet('awesome_page');
  6.     $this->assertIdentical($awesome, 'dmitrig01');

Fix for Fix for A more awesome solution

  1. <?php
  2.  
  3. class MyAwesomeTestCase extends DrupalWebTestCase {
  4.   function testAwesomeness() {
  5.     $awesome = $this->drupalGet('awesome_page');
  6.     $this->assertIdentical($awesome, 'dmitrig01');

Fix for Fix for A more awesome solution

  1. <?php
  2.  
  3. class MyAwesomeTestCase extends DrupalWebTestCase {
  4.   function testAwesomeness() {
  5.     $awesome = $this->drupalGet('awesome_page');
  6.     $this->assertIdentical($awesome, 'cwgordon7');

Fix for A more awesome solution

  1. <?php
  2.  
  3. class MyAwesomeTestCase extends DrupalWebTestCase {
  4.   function testAwesomeness() {
  5.     $this->implementHook('menu');
  6.     $awesome = $this->drupalGet('awesome_page');
Syndicate content