From cc1a1d95fe1976b59ee71e9aca1971953668c1a7 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 16 Oct 2019 12:40:41 +0200 Subject: [PATCH] Correct property name --- plugins/acl/tests/Acl.php | 2 +- .../tests/AdditionalMessageHeaders.php | 2 +- plugins/archive/tests/Archive.php | 2 +- plugins/autologon/tests/Autologon.php | 2 +- plugins/database_attachments/tests/DatabaseAttachments.php | 2 +- plugins/debug_logger/tests/DebugLogger.php | 2 +- plugins/emoticons/tests/Emoticons.php | 2 +- plugins/enigma/tests/Enigma.php | 2 +- plugins/example_addressbook/tests/ExampleAddressbook.php | 2 +- plugins/filesystem_attachments/tests/FilesystemAttachments.php | 2 +- plugins/help/tests/Help.php | 2 +- plugins/hide_blockquote/tests/HideBlockquote.php | 2 +- plugins/http_authentication/tests/HttpAuthentication.php | 2 +- plugins/identicon/tests/Identicon.php | 2 +- plugins/identity_select/tests/IdentitySelect.php | 2 +- plugins/jqueryui/tests/Jqueryui.php | 2 +- plugins/krb_authentication/tests/KrbAuthentication.php | 2 +- plugins/managesieve/tests/Managesieve.php | 2 +- plugins/markasjunk/tests/Markasjunk.php | 2 +- plugins/new_user_dialog/tests/NewUserDialog.php | 2 +- plugins/new_user_identity/tests/NewUserIdentity.php | 2 +- plugins/newmail_notifier/tests/NewmailNotifier.php | 2 +- plugins/password/tests/Password.php | 2 +- plugins/redundant_attachments/tests/RedundantAttachments.php | 2 +- plugins/show_additional_headers/tests/ShowAdditionalHeaders.php | 2 +- plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php | 2 +- plugins/subscriptions_option/tests/SubscriptionsOption.php | 2 +- plugins/userinfo/tests/Userinfo.php | 2 +- plugins/vcard_attachments/tests/VcardAttachments.php | 2 +- plugins/virtuser_file/tests/VirtuserFile.php | 2 +- plugins/virtuser_query/tests/VirtuserQuery.php | 2 +- plugins/zipdownload/tests/Zipdownload.php | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/plugins/acl/tests/Acl.php b/plugins/acl/tests/Acl.php index 56ae3b5bb..548fff26a 100644 --- a/plugins/acl/tests/Acl.php +++ b/plugins/acl/tests/Acl.php @@ -14,7 +14,7 @@ class Acl_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new acl($rcube->api); + $plugin = new acl($rcube->plugins); $this->assertInstanceOf('acl', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php b/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php index 55e8c441e..7679af804 100644 --- a/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php +++ b/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php @@ -14,7 +14,7 @@ class AdditionalMessageHeaders_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new additional_message_headers($rcube->api); + $plugin = new additional_message_headers($rcube->plugins); $this->assertInstanceOf('additional_message_headers', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/archive/tests/Archive.php b/plugins/archive/tests/Archive.php index 17fcdf7a1..3cdaf1af1 100644 --- a/plugins/archive/tests/Archive.php +++ b/plugins/archive/tests/Archive.php @@ -14,7 +14,7 @@ class Archive_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new archive($rcube->api); + $plugin = new archive($rcube->plugins); $this->assertInstanceOf('archive', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/autologon/tests/Autologon.php b/plugins/autologon/tests/Autologon.php index f3f6b4206..cd25e7558 100644 --- a/plugins/autologon/tests/Autologon.php +++ b/plugins/autologon/tests/Autologon.php @@ -14,7 +14,7 @@ class Autologon_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new autologon($rcube->api); + $plugin = new autologon($rcube->plugins); $this->assertInstanceOf('autologon', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/database_attachments/tests/DatabaseAttachments.php b/plugins/database_attachments/tests/DatabaseAttachments.php index 15ea5f44e..99331d259 100644 --- a/plugins/database_attachments/tests/DatabaseAttachments.php +++ b/plugins/database_attachments/tests/DatabaseAttachments.php @@ -14,7 +14,7 @@ class DatabaseAttachments_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new database_attachments($rcube->api); + $plugin = new database_attachments($rcube->plugins); $this->assertInstanceOf('database_attachments', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/debug_logger/tests/DebugLogger.php b/plugins/debug_logger/tests/DebugLogger.php index 8dd0c03fe..4438baf78 100644 --- a/plugins/debug_logger/tests/DebugLogger.php +++ b/plugins/debug_logger/tests/DebugLogger.php @@ -14,7 +14,7 @@ class DebugLogger_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new debug_logger($rcube->api); + $plugin = new debug_logger($rcube->plugins); $this->assertInstanceOf('debug_logger', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/emoticons/tests/Emoticons.php b/plugins/emoticons/tests/Emoticons.php index bc21ceb1d..9bfa42c0a 100644 --- a/plugins/emoticons/tests/Emoticons.php +++ b/plugins/emoticons/tests/Emoticons.php @@ -14,7 +14,7 @@ class Emoticons_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new emoticons($rcube->api); + $plugin = new emoticons($rcube->plugins); $this->assertInstanceOf('emoticons', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/enigma/tests/Enigma.php b/plugins/enigma/tests/Enigma.php index 3972694fc..ada3f8d5b 100644 --- a/plugins/enigma/tests/Enigma.php +++ b/plugins/enigma/tests/Enigma.php @@ -14,7 +14,7 @@ class Enigma_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new enigma($rcube->api); + $plugin = new enigma($rcube->plugins); $this->assertInstanceOf('enigma', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/example_addressbook/tests/ExampleAddressbook.php b/plugins/example_addressbook/tests/ExampleAddressbook.php index 762ee7307..dab035572 100644 --- a/plugins/example_addressbook/tests/ExampleAddressbook.php +++ b/plugins/example_addressbook/tests/ExampleAddressbook.php @@ -14,7 +14,7 @@ class ExampleAddressbook_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new example_addressbook($rcube->api); + $plugin = new example_addressbook($rcube->plugins); $this->assertInstanceOf('example_addressbook', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/filesystem_attachments/tests/FilesystemAttachments.php b/plugins/filesystem_attachments/tests/FilesystemAttachments.php index 3b60e12c9..42b7f0685 100644 --- a/plugins/filesystem_attachments/tests/FilesystemAttachments.php +++ b/plugins/filesystem_attachments/tests/FilesystemAttachments.php @@ -14,7 +14,7 @@ class FilesystemAttachments_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new filesystem_attachments($rcube->api); + $plugin = new filesystem_attachments($rcube->plugins); $this->assertInstanceOf('filesystem_attachments', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/help/tests/Help.php b/plugins/help/tests/Help.php index ff5771bf9..f95da7562 100644 --- a/plugins/help/tests/Help.php +++ b/plugins/help/tests/Help.php @@ -14,7 +14,7 @@ class Help_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new help($rcube->api); + $plugin = new help($rcube->plugins); $this->assertInstanceOf('help', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/hide_blockquote/tests/HideBlockquote.php b/plugins/hide_blockquote/tests/HideBlockquote.php index 90e209459..f4f954463 100644 --- a/plugins/hide_blockquote/tests/HideBlockquote.php +++ b/plugins/hide_blockquote/tests/HideBlockquote.php @@ -14,7 +14,7 @@ class HideBlockquote_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new hide_blockquote($rcube->api); + $plugin = new hide_blockquote($rcube->plugins); $this->assertInstanceOf('hide_blockquote', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/http_authentication/tests/HttpAuthentication.php b/plugins/http_authentication/tests/HttpAuthentication.php index 5de968d87..4e76b070d 100644 --- a/plugins/http_authentication/tests/HttpAuthentication.php +++ b/plugins/http_authentication/tests/HttpAuthentication.php @@ -14,7 +14,7 @@ class HttpAuthentication_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new http_authentication($rcube->api); + $plugin = new http_authentication($rcube->plugins); $this->assertInstanceOf('http_authentication', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/identicon/tests/Identicon.php b/plugins/identicon/tests/Identicon.php index 8dca8aecf..f99a13b90 100644 --- a/plugins/identicon/tests/Identicon.php +++ b/plugins/identicon/tests/Identicon.php @@ -14,7 +14,7 @@ class Identicon_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new identicon($rcube->api); + $plugin = new identicon($rcube->plugins); $this->assertInstanceOf('identicon', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/identity_select/tests/IdentitySelect.php b/plugins/identity_select/tests/IdentitySelect.php index 461e79d85..447319a17 100644 --- a/plugins/identity_select/tests/IdentitySelect.php +++ b/plugins/identity_select/tests/IdentitySelect.php @@ -14,7 +14,7 @@ class IdentitySelect_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new identity_select($rcube->api); + $plugin = new identity_select($rcube->plugins); $this->assertInstanceOf('identity_select', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/jqueryui/tests/Jqueryui.php b/plugins/jqueryui/tests/Jqueryui.php index ee25818ec..ab0dc6232 100644 --- a/plugins/jqueryui/tests/Jqueryui.php +++ b/plugins/jqueryui/tests/Jqueryui.php @@ -14,7 +14,7 @@ class Jqueryui_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new jqueryui($rcube->api); + $plugin = new jqueryui($rcube->plugins); $this->assertInstanceOf('jqueryui', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/krb_authentication/tests/KrbAuthentication.php b/plugins/krb_authentication/tests/KrbAuthentication.php index f28f5be9d..e1e4d012e 100644 --- a/plugins/krb_authentication/tests/KrbAuthentication.php +++ b/plugins/krb_authentication/tests/KrbAuthentication.php @@ -14,7 +14,7 @@ class KrbAuthentication_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new krb_authentication($rcube->api); + $plugin = new krb_authentication($rcube->plugins); $this->assertInstanceOf('krb_authentication', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/managesieve/tests/Managesieve.php b/plugins/managesieve/tests/Managesieve.php index 6e930b81d..2cce9473e 100644 --- a/plugins/managesieve/tests/Managesieve.php +++ b/plugins/managesieve/tests/Managesieve.php @@ -14,7 +14,7 @@ class Managesieve_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new managesieve($rcube->api); + $plugin = new managesieve($rcube->plugins); $this->assertInstanceOf('managesieve', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/markasjunk/tests/Markasjunk.php b/plugins/markasjunk/tests/Markasjunk.php index 73494b0ec..dbf337aee 100644 --- a/plugins/markasjunk/tests/Markasjunk.php +++ b/plugins/markasjunk/tests/Markasjunk.php @@ -14,7 +14,7 @@ class Markasjunk_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new markasjunk($rcube->api); + $plugin = new markasjunk($rcube->plugins); $this->assertInstanceOf('markasjunk', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/new_user_dialog/tests/NewUserDialog.php b/plugins/new_user_dialog/tests/NewUserDialog.php index e58489a09..fdb0c6511 100644 --- a/plugins/new_user_dialog/tests/NewUserDialog.php +++ b/plugins/new_user_dialog/tests/NewUserDialog.php @@ -14,7 +14,7 @@ class NewUserDialog_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new new_user_dialog($rcube->api); + $plugin = new new_user_dialog($rcube->plugins); $this->assertInstanceOf('new_user_dialog', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/new_user_identity/tests/NewUserIdentity.php b/plugins/new_user_identity/tests/NewUserIdentity.php index 21197362e..beda199e3 100644 --- a/plugins/new_user_identity/tests/NewUserIdentity.php +++ b/plugins/new_user_identity/tests/NewUserIdentity.php @@ -14,7 +14,7 @@ class NewUserIdentity_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new new_user_identity($rcube->api); + $plugin = new new_user_identity($rcube->plugins); $this->assertInstanceOf('new_user_identity', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/newmail_notifier/tests/NewmailNotifier.php b/plugins/newmail_notifier/tests/NewmailNotifier.php index ccddccd39..3ab6d4142 100644 --- a/plugins/newmail_notifier/tests/NewmailNotifier.php +++ b/plugins/newmail_notifier/tests/NewmailNotifier.php @@ -14,7 +14,7 @@ class NewmailNotifier_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new newmail_notifier($rcube->api); + $plugin = new newmail_notifier($rcube->plugins); $this->assertInstanceOf('newmail_notifier', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/password/tests/Password.php b/plugins/password/tests/Password.php index 95cba4166..a5be3fe69 100644 --- a/plugins/password/tests/Password.php +++ b/plugins/password/tests/Password.php @@ -14,7 +14,7 @@ class Password_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new password($rcube->api); + $plugin = new password($rcube->plugins); $this->assertInstanceOf('password', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/redundant_attachments/tests/RedundantAttachments.php b/plugins/redundant_attachments/tests/RedundantAttachments.php index 53f0c0138..b283f1036 100644 --- a/plugins/redundant_attachments/tests/RedundantAttachments.php +++ b/plugins/redundant_attachments/tests/RedundantAttachments.php @@ -14,7 +14,7 @@ class RedundantAttachments_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new redundant_attachments($rcube->api); + $plugin = new redundant_attachments($rcube->plugins); $this->assertInstanceOf('redundant_attachments', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/show_additional_headers/tests/ShowAdditionalHeaders.php b/plugins/show_additional_headers/tests/ShowAdditionalHeaders.php index ab77351a4..803f47f1d 100644 --- a/plugins/show_additional_headers/tests/ShowAdditionalHeaders.php +++ b/plugins/show_additional_headers/tests/ShowAdditionalHeaders.php @@ -14,7 +14,7 @@ class ShowAdditionalHeaders_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new show_additional_headers($rcube->api); + $plugin = new show_additional_headers($rcube->plugins); $this->assertInstanceOf('show_additional_headers', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php b/plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php index 0e3a5c48a..f28da512b 100644 --- a/plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php +++ b/plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php @@ -14,7 +14,7 @@ class SquirrelmailUsercopy_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new squirrelmail_usercopy($rcube->api); + $plugin = new squirrelmail_usercopy($rcube->plugins); $this->assertInstanceOf('squirrelmail_usercopy', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/subscriptions_option/tests/SubscriptionsOption.php b/plugins/subscriptions_option/tests/SubscriptionsOption.php index 10168315e..c8ca50bbb 100644 --- a/plugins/subscriptions_option/tests/SubscriptionsOption.php +++ b/plugins/subscriptions_option/tests/SubscriptionsOption.php @@ -14,7 +14,7 @@ class SubscriptionsOption_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new subscriptions_option($rcube->api); + $plugin = new subscriptions_option($rcube->plugins); $this->assertInstanceOf('subscriptions_option', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/userinfo/tests/Userinfo.php b/plugins/userinfo/tests/Userinfo.php index 7eb0758b5..36fa1a389 100644 --- a/plugins/userinfo/tests/Userinfo.php +++ b/plugins/userinfo/tests/Userinfo.php @@ -14,7 +14,7 @@ class Userinfo_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new userinfo($rcube->api); + $plugin = new userinfo($rcube->plugins); $this->assertInstanceOf('userinfo', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/vcard_attachments/tests/VcardAttachments.php b/plugins/vcard_attachments/tests/VcardAttachments.php index 4b37cfc01..0e42f4897 100644 --- a/plugins/vcard_attachments/tests/VcardAttachments.php +++ b/plugins/vcard_attachments/tests/VcardAttachments.php @@ -14,7 +14,7 @@ class VcardAttachments_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new vcard_attachments($rcube->api); + $plugin = new vcard_attachments($rcube->plugins); $this->assertInstanceOf('vcard_attachments', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/virtuser_file/tests/VirtuserFile.php b/plugins/virtuser_file/tests/VirtuserFile.php index 80feecd15..49eb094fc 100644 --- a/plugins/virtuser_file/tests/VirtuserFile.php +++ b/plugins/virtuser_file/tests/VirtuserFile.php @@ -14,7 +14,7 @@ class VirtuserFile_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new virtuser_file($rcube->api); + $plugin = new virtuser_file($rcube->plugins); $this->assertInstanceOf('virtuser_file', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/virtuser_query/tests/VirtuserQuery.php b/plugins/virtuser_query/tests/VirtuserQuery.php index 6c68f4c64..b41372b25 100644 --- a/plugins/virtuser_query/tests/VirtuserQuery.php +++ b/plugins/virtuser_query/tests/VirtuserQuery.php @@ -14,7 +14,7 @@ class VirtuserQuery_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new virtuser_query($rcube->api); + $plugin = new virtuser_query($rcube->plugins); $this->assertInstanceOf('virtuser_query', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin); diff --git a/plugins/zipdownload/tests/Zipdownload.php b/plugins/zipdownload/tests/Zipdownload.php index 3882dea87..ec83d081a 100644 --- a/plugins/zipdownload/tests/Zipdownload.php +++ b/plugins/zipdownload/tests/Zipdownload.php @@ -14,7 +14,7 @@ class Zipdownload_Plugin extends PHPUnit_Framework_TestCase function test_constructor() { $rcube = rcube::get_instance(); - $plugin = new zipdownload($rcube->api); + $plugin = new zipdownload($rcube->plugins); $this->assertInstanceOf('zipdownload', $plugin); $this->assertInstanceOf('rcube_plugin', $plugin);