DrupalBin
Submit Code
About
Recent Posts
Fix for Code
Code
Code
Fix for YesCT make an acronym
YesCT make an acronym
Code
block_menu
Node lookup
Fix for Video tag RegExp
Video tag RegExp
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
simpletest
test
theme
user
views
more tags
Home
simpletest
Test of default images in imagefield
January 7, 2010 - 5:37pm —
naxoc
function
testWithDefaultImage
(
)
{
$file
=
current
(
$this
-
>
drupalGetTestFiles
(
'image'
)
)
;
$edit
[
'files[field_settings_default_image]'
]
=
$file
-
>
uri
;
$edit
[
'field[settings][default_imag
simpletest
Read more
assertWatchdog()
December 5, 2009 - 10:29pm —
sun
function
tearDown
(
)
{
// Capture any (remaining) watchdog messages.
$this
-
>
assertMollomWatchdogMessages
(
)
;
parent::
tearDown
(
)
;
}
/**
* Assert any watchdog messages based o
simpletest
Read more
book_access.test
November 22, 2009 - 6:38am —
KiamLaLuno
<?php
// $Id$
/**
* @file
* Test file for Book Access module.
*
*/
class
BookAccessTestCase
extends
DrupalWebTestCase
{
/**
* Check that the current user can/cannot view/update/d
simpletest
Read more
Code
September 19, 2009 - 7:32pm — Anonymous
/**
* Test enabling/disabling of optional modules functionality.
*/
class
ModuleStatusSwitchingTestCase
extends
ModuleTestCase
{
public
static
function
getInfo
(
)
{
return
array
(
'n
module
simpletest
Read more
enabling a default view from simpletest
August 18, 2009 - 9:24am — Anonymous
// requires a user with administer views, and must install views and views ui modules
$this
-
>
drupalGet
(
'comments/recent'
)
;
$this
-
>
pass
(
'That should fail'
)
;
$this
-
>
drupalPost
(
'admin/bu
simpletest
views
Read more
teste
July 25, 2009 - 11:10am — Anonymous
<
html
>
</
html
>
simpletest
test failure
May 26, 2009 - 11:26am — Anonymous
<?php
class MetaTestCase extends DrupalWebTestCase {
protected $admin_user;
public static function getInfo() {
return array(
'name' => t('Meta test'),
simpletest
Read more
Boom
February 21, 2009 - 5:26pm — Anonymous
..-^~~~^-..
.~ ~.
(;: :;)
(. .)
':._ _.:'
| |
(=====)
| |
| |
| |
((/ \))
simpletest
simpletest_get_all_tests
February 20, 2009 - 12:17am — Anonymous
/**
* Get a list of all of the tests.
*
* @return
* An array of tests, with the test class name as the keys and the test
* information as the value.
* @see hook_test()
*/
simpletest
Read more
SimpleText assertText is failing
February 10, 2009 - 4:59am — Anonymous
$this
-
>
drupalGet
(
"node/$node->nid"
)
;
$this
-
>
assertText
(
"href"
,
t
(
"HREF found."
)
)
;
simpletest
1
2
3
4
5
next ›
last »