diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-19 16:56:34 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-20 16:33:26 +0200 |
commit | 972b4c04e2ea3bf96533c111853a57177231c638 (patch) | |
tree | e4b17437ede942eaff7fb0fc195d92e1e58cccb8 /apps/sharebymail/tests | |
parent | 428d7cdb5e7be1d5ede6d5084459660b22c84b2c (diff) | |
download | nextcloud-server-972b4c04e2ea3bf96533c111853a57177231c638.tar.gz nextcloud-server-972b4c04e2ea3bf96533c111853a57177231c638.zip |
respect password policy for auto generated passwords
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/sharebymail/tests')
-rw-r--r-- | apps/sharebymail/tests/ShareByMailProviderTest.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php index 4061ef4eb50..a3e5da82bf2 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -23,6 +23,7 @@ namespace OCA\ShareByMail\Tests; +use OC\CapabilitiesManager; use OC\Mail\Message; use OCA\ShareByMail\Settings\SettingsManager; use OCA\ShareByMail\ShareByMailProvider; @@ -93,6 +94,9 @@ class ShareByMailProviderTest extends TestCase { /** @var IHasher | \PHPUnit_Framework_MockObject_MockObject */ private $hasher; + /** @var CapabilitiesManager | \PHPUnit_Framework_MockObject_MockObject */ + private $capabilitiesManager; + public function setUp() { parent::setUp(); @@ -115,6 +119,7 @@ class ShareByMailProviderTest extends TestCase { $this->settingsManager = $this->getMockBuilder(SettingsManager::class)->disableOriginalConstructor()->getMock(); $this->defaults = $this->createMock(Defaults::class); $this->hasher = $this->getMockBuilder(IHasher::class)->getMock(); + $this->capabilitiesManager = $this->getMockBuilder(CapabilitiesManager::class)->disableOriginalConstructor()->getMock(); $this->userManager->expects($this->any())->method('userExists')->willReturn(true); } @@ -141,7 +146,8 @@ class ShareByMailProviderTest extends TestCase { $this->activityManager, $this->settingsManager, $this->defaults, - $this->hasher + $this->hasher, + $this->capabilitiesManager ] ); @@ -162,7 +168,8 @@ class ShareByMailProviderTest extends TestCase { $this->activityManager, $this->settingsManager, $this->defaults, - $this->hasher + $this->hasher, + $this->capabilitiesManager ); } |