Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
814a8acc
Commit
814a8acc
authored
4 years ago
by
Joas Schilling
Committed by
backportbot[bot]
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix unit tests
Signed-off-by:
Joas Schilling
<
coding@schilljs.com
>
parent
cf11f914
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/lib/Comments/CommentTest.php
+3
-3
3 additions, 3 deletions
tests/lib/Comments/CommentTest.php
with
3 additions
and
3 deletions
tests/lib/Comments/CommentTest.php
+
3
−
3
View file @
814a8acc
...
...
@@ -51,7 +51,7 @@ class CommentTest extends TestCase {
$this
->
assertSame
(
$object
[
'id'
],
$comment
->
getObjectId
());
}
public
function
testSetIdIllegalInput
()
{
$this
->
expectException
(
\OCP\Comments\IllegalIDChangeException
::
class
);
...
...
@@ -120,7 +120,7 @@ class CommentTest extends TestCase {
$comment
->
$setter
(
$type
,
$id
);
}
public
function
testSetUberlongMessage
()
{
$this
->
expectException
(
\OCP\Comments\MessageTooLongException
::
class
);
...
...
@@ -149,7 +149,7 @@ class CommentTest extends TestCase {
' cc @23452-4333-54353-2342 @yolo!'
.
' however the most important thing to know is that www.croissant.com/@oil is not valid'
.
' and won\'t match anything at all'
,
[
'foobar'
,
'barfoo'
,
'foo@bar.com'
,
'bar@foo.org@foobar.io'
,
'23452-4333-54353-2342'
,
'yolo'
]
[
'bar@foo.org@foobar.io'
,
'23452-4333-54353-2342'
,
'foo@bar.com'
,
'foobar'
,
'barfoo'
,
'yolo'
]
],
[
'@@chef is also a valid mention, no matter how strange it looks'
,
[
'@chef'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment