diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-05-30 15:20:15 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-06-04 16:13:32 +0300 |
commit | 357263a70bf56e351e0d292c6144f998dad7f079 (patch) | |
tree | 5bdf1458172cbefad7ccd90c173040d8965c6b6b /tests/lib/Contacts | |
parent | 05058b0135813c4bfc355486e04e2324e2244078 (diff) |
Do not try to autoload built in types
This avoids calls to the autoloader (or chain of autoloaders) to see if
for example 'principalPrefix' class can be found. While we already know
it is a string.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Contacts')
-rw-r--r-- | tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php b/tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php index 8738e19b513..fb5e815447c 100644 --- a/tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php +++ b/tests/lib/Contacts/ContactsMenu/ActionProviderStoreTest.php @@ -81,8 +81,8 @@ class ActionProviderStoreTest extends TestCase { $this->serverContainer->expects($this->exactly(2)) ->method('query') ->will($this->returnValueMap([ - [EMailProvider::class, $provider1], - ['OCA\Contacts\Provider1', $provider2] + [EMailProvider::class, true, $provider1], + ['OCA\Contacts\Provider1', true, $provider2] ])); $providers = $this->actionProviderStore->getProviders($user); @@ -106,7 +106,7 @@ class ActionProviderStoreTest extends TestCase { $this->serverContainer->expects($this->once()) ->method('query') ->will($this->returnValueMap([ - [EMailProvider::class, $provider1], + [EMailProvider::class, true, $provider1], ])); $providers = $this->actionProviderStore->getProviders($user); |