diff options
author | Robin Windey <ro.windey@gmail.com> | 2020-10-12 14:19:41 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-10-12 18:08:36 +0000 |
commit | 06895ef8cc3c227aec4e59a3bfca87430fd55c75 (patch) | |
tree | f31ab2cc44fdaa0e023f23aec80aff26514ab617 /tests | |
parent | 830d911507371cba9dad58952b1deacafbbf5d81 (diff) | |
download | nextcloud-server-06895ef8cc3c227aec4e59a3bfca87430fd55c75.tar.gz nextcloud-server-06895ef8cc3c227aec4e59a3bfca87430fd55c75.zip |
Fix typo 'shared'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php index 8441b6e983d..8e88db6f19a 100644 --- a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php +++ b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php @@ -83,7 +83,10 @@ class RegistrationContextTest extends TestCase { $this->context->delegateEventListenerRegistrations($dispatcher); } - public function testRegisterService(): void { + /** + * @dataProvider dataProvider_TrueFalse + */ + public function testRegisterService(bool $shared): void { $app = $this->createMock(App::class); $service = 'abc'; $factory = function () { @@ -94,11 +97,11 @@ class RegistrationContextTest extends TestCase { ->willReturn($container); $container->expects($this->once()) ->method('registerService') - ->with($service, $factory, true); + ->with($service, $factory, $shared); $this->logger->expects($this->never()) ->method('logException'); - $this->context->for('myapp')->registerService($service, $factory); + $this->context->for('myapp')->registerService($service, $factory, $shared); $this->context->delegateContainerRegistrations([ 'myapp' => $app, ]); @@ -159,4 +162,11 @@ class RegistrationContextTest extends TestCase { 'myapp' => $app, ]); } + + public function dataProvider_TrueFalse(){ + return[ + [true], + [false] + ]; + } } |