Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b305732e
Commit
b305732e
authored
Jul 22, 2008
by
Dries
Browse files
- Patch
#285184
by Arancaytar: fixing e-mail address in tests.
parent
b6e8e391
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/contact/contact.test
View file @
b305732e
...
@@ -57,7 +57,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
...
@@ -57,7 +57,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
$this
->
assertText
(
t
(
'Recipients field is required.'
),
t
(
'Caught empty recipients field.'
));
$this
->
assertText
(
t
(
'Recipients field is required.'
),
t
(
'Caught empty recipients field.'
));
// Create valid categories.
// Create valid categories.
$recipients
=
array
(
'simpletest@
test
.com'
,
'simpletest2@
test
.com'
,
'simpletest3@
test
.com'
);
$recipients
=
array
(
'simpletest@
example
.com'
,
'simpletest2@
example
.com'
,
'simpletest3@
example
.com'
);
$this
->
addCategory
(
$category
=
$this
->
randomName
(
16
),
implode
(
','
,
array
(
$recipients
[
0
])),
''
,
TRUE
);
$this
->
addCategory
(
$category
=
$this
->
randomName
(
16
),
implode
(
','
,
array
(
$recipients
[
0
])),
''
,
TRUE
);
$this
->
assertRaw
(
t
(
'Category %category has been added.'
,
array
(
'%category'
=>
$category
)),
t
(
'Category successfully added.'
));
$this
->
assertRaw
(
t
(
'Category %category has been added.'
,
array
(
'%category'
=>
$category
)),
t
(
'Category successfully added.'
));
...
@@ -281,4 +281,4 @@ class ContactPersonalTestCase extends DrupalWebTestCase {
...
@@ -281,4 +281,4 @@ class ContactPersonalTestCase extends DrupalWebTestCase {
$this
->
drupalGet
(
'user/'
.
$web_user4
->
uid
.
'/contact'
);
$this
->
drupalGet
(
'user/'
.
$web_user4
->
uid
.
'/contact'
);
$this
->
assertResponse
(
403
,
t
(
'Access to personal contact form denied.'
));
$this
->
assertResponse
(
403
,
t
(
'Access to personal contact form denied.'
));
}
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment