Code Duplication    Length = 10-14 lines in 2 locations

tests/lib/encryption/encryptionwrappertest.php 1 location

@@ 43-52 (lines=10) @@
40
	/** @var  \PHPUnit_Framework_MockObject_MockObject | \OC\Memcache\ArrayCache */
41
	private $arrayCache;
42
43
	public function setUp() {
44
		parent::setUp();
45
46
		$this->arrayCache = $this->getMock('OC\Memcache\ArrayCache');
47
		$this->manager = $this->getMockBuilder('OC\Encryption\Manager')
48
			->disableOriginalConstructor()->getMock();
49
		$this->logger = $this->getMock('OCP\ILogger');
50
51
		$this->instance = new EncryptionWrapper($this->arrayCache, $this->manager, $this->logger);
52
	}
53
54
55
	/**

tests/lib/ocsclienttest.php 1 location

@@ 40-53 (lines=14) @@
37
	/** @var ILogger */
38
	private $logger;
39
40
	public function setUp() {
41
		parent::setUp();
42
43
		$this->config = $this->getMockBuilder('\OCP\IConfig')
44
			->disableOriginalConstructor()->getMock();
45
		$this->clientService = $this->getMock('\OCP\Http\Client\IClientService');
46
		$this->logger = $this->getMock('\OCP\ILogger');
47
48
		$this->ocsClient = new OCSClient(
49
			$this->clientService,
50
			$this->config,
51
			$this->logger
52
		);
53
	}
54
55
	public function testIsAppStoreEnabledSuccess() {
56
		$this->config