Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
b44e9121
Unverified
Commit
b44e9121
authored
5 years ago
by
Roeland Jago Douma
Browse files
Options
Downloads
Patches
Plain Diff
Remove deleteMailbox
Signed-off-by:
Roeland Jago Douma
<
roeland@famdouma.nl
>
parent
765d7511
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Account.php
+0
-11
0 additions, 11 deletions
lib/Account.php
tests/IMAP/AbstractTest.php
+1
-8
1 addition, 8 deletions
tests/IMAP/AbstractTest.php
with
1 addition
and
19 deletions
lib/Account.php
+
0
−
11
View file @
b44e9121
...
...
@@ -150,17 +150,6 @@ class Account implements JsonSerializable {
return
$this
->
client
;
}
/**
* @param string $mailBox
*/
public
function
deleteMailbox
(
$mailBox
)
{
if
(
$mailBox
instanceof
Mailbox
)
{
$mailBox
=
$mailBox
->
getFolderId
();
}
$conn
=
$this
->
getImapConnection
();
$conn
->
deleteMailbox
(
$mailBox
);
}
/**
* @param string $folderId
* @return Mailbox
...
...
This diff is collapsed.
Click to expand it.
tests/IMAP/AbstractTest.php
+
1
−
8
View file @
b44e9121
...
...
@@ -69,7 +69,7 @@ abstract class AbstractTest extends TestCase {
try
{
self
::
deleteMailbox
(
$createdMailbox
);
}
catch
(
Exception
$ex
)
{
}
}
}
...
...
@@ -98,13 +98,6 @@ abstract class AbstractTest extends TestCase {
return
self
::
$account
;
}
/**
* @param string $mailbox
*/
private
static
function
deleteMailbox
(
$mailbox
)
{
self
::
$account
->
deleteMailbox
(
$mailbox
);
}
/**
* @param string $name
*/
...
...
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