simpletest

Really fun testing error

  1. An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.

Test of default images in imagefield

  1.   function testWithDefaultImage() {
  2.  
  3.     $file = current($this->drupalGetTestFiles('image'));
  4.     $edit['files[field_settings_default_image]'] = $file->uri;
  5.     $edit['field[settings][default_imag

assertWatchdog()

  1.   function tearDown() {
  2.     // Capture any (remaining) watchdog messages.
  3.     $this->assertMollomWatchdogMessages();
  4.     parent::tearDown();
  5.   }
  6.  
  7.   /**
  8.    * Assert any watchdog messages based o

book_access.test

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Test file for Book Access module.
  7.  *
  8.  */
  9.  
  10. class BookAccessTestCase extends DrupalWebTestCase {
  11.   /**
  12.    * Check that the current user can/cannot view/update/d

Code

  1. /**
  2.  * Test enabling/disabling of optional modules functionality.
  3.  */
  4. class ModuleStatusSwitchingTestCase extends ModuleTestCase {
  5.   public static function getInfo() {
  6.     return array(
  7.       'n

enabling a default view from simpletest

  1. // requires a user with administer views, and must install views and views ui modules
  2.  
  3.     $this->drupalGet('comments/recent');
  4.     $this->pass('That should fail');
  5.     $this->drupalPost('admin/bu

teste

  1. <html>
  2. </html>

test failure

  1. <?php
  2.  
  3. class MetaTestCase extends DrupalWebTestCase {
  4.   protected $admin_user;
  5.  
  6.   public static function getInfo() {
  7.     return array(
  8.       'name' => t('Meta test'),

Boom

  1.    ..-^~~~^-..
  2.  .~           ~.
  3. (;:           :;)
  4.  (.           .)
  5.    ':._   _.:'
  6.        | |
  7.      (=====)
  8.        | |
  9.        | |
  10.        | |
  11.     ((/   \))

simpletest_get_all_tests

  1. /**
  2.  * Get a list of all of the tests.
  3.  *
  4.  * @return
  5.  *   An array of tests, with the test class name as the keys and the test
  6.  *   information as the value.
  7.  * @see hook_test()
  8.  */
Syndicate content