Completed
Push — master ( 6895ba...ed9b63 )
by
unknown
31:37
created
tests/lib/Mail/MailerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			$path = '/usr/sbin/sendmail';
93 93
 		}
94 94
 
95
-		$expected = new SendmailTransport($path . $binaryParam, null, $this->logger);
95
+		$expected = new SendmailTransport($path.$binaryParam, null, $this->logger);
96 96
 		$this->assertEquals($expected, self::invokePrivate($this->mailer, 'getSendMailInstance'));
97 97
 	}
98 98
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 				['mail_sendmailmode', 'smtp', $sendmailMode],
111 111
 			]);
112 112
 
113
-		$sendmail = new SendmailTransport('/var/qmail/bin/sendmail' . $binaryParam, null, $this->logger);
113
+		$sendmail = new SendmailTransport('/var/qmail/bin/sendmail'.$binaryParam, null, $this->logger);
114 114
 		$this->assertEquals($sendmail, self::invokePrivate($this->mailer, 'getSendMailInstance'));
115 115
 	}
116 116
 
Please login to merge, or discard this patch.
tests/lib/Mail/EMailTemplateTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 			'TestCloud - A safe home for your data<br>This is an automatically sent email, please do not reply.'
81 81
 		);
82 82
 
83
-		$expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email.html');
83
+		$expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email.html');
84 84
 		$this->assertSame($expectedHTML, $this->emailTemplate->renderHtml());
85
-		$expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email.txt');
85
+		$expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email.txt');
86 86
 		$this->assertSame($expectedTXT, $this->emailTemplate->renderText());
87 87
 	}
88 88
 
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
 		);
124 124
 		$this->emailTemplate->addFooter();
125 125
 
126
-		$expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.html');
126
+		$expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.html');
127 127
 		$this->assertSame($expectedHTML, $this->emailTemplate->renderHtml());
128
-		$expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.txt');
128
+		$expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.txt');
129 129
 		$this->assertSame($expectedTXT, $this->emailTemplate->renderText());
130 130
 	}
131 131
 
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
 		);
167 167
 		$this->emailTemplate->addFooter();
168 168
 
169
-		$expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-single-button.html');
169
+		$expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-single-button.html');
170 170
 		$this->assertSame($expectedHTML, $this->emailTemplate->renderHtml());
171
-		$expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-single-button.txt');
171
+		$expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-single-button.txt');
172 172
 		$this->assertSame($expectedTXT, $this->emailTemplate->renderText());
173 173
 	}
174 174
 
@@ -212,9 +212,9 @@  discard block
 block discarded – undo
212 212
 		);
213 213
 		$this->emailTemplate->addFooter();
214 214
 
215
-		$expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.html');
215
+		$expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.html');
216 216
 		$this->assertSame($expectedHTML, $this->emailTemplate->renderHtml());
217
-		$expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom-text-alternative.txt');
217
+		$expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom-text-alternative.txt');
218 218
 		$this->assertSame($expectedTXT, $this->emailTemplate->renderText());
219 219
 	}
220 220
 }
Please login to merge, or discard this patch.
tests/lib/Remote/Api/OCSTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	protected function getOCSUrl($url) {
40
-		return 'https://example.com/ocs/v2.php/' . $url;
40
+		return 'https://example.com/ocs/v2.php/'.$url;
41 41
 	}
42 42
 
43 43
 	public function testGetUser(): void {
Please login to merge, or discard this patch.
tests/lib/TempManagerTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	protected function setUp(): void {
19 19
 		parent::setUp();
20 20
 
21
-		$this->baseDir = $this->getManager()->getTempBaseDir() . $this->getUniqueID('/oc_tmp_test');
21
+		$this->baseDir = $this->getManager()->getTempBaseDir().$this->getUniqueID('/oc_tmp_test');
22 22
 		if (!is_dir($this->baseDir)) {
23 23
 			mkdir($this->baseDir);
24 24
 		}
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 		$this->assertTrue(is_dir($folder));
74 74
 		$this->assertTrue(is_writable($folder));
75 75
 
76
-		file_put_contents($folder . 'foo.txt', 'bar');
77
-		$this->assertEquals('bar', file_get_contents($folder . 'foo.txt'));
76
+		file_put_contents($folder.'foo.txt', 'bar');
77
+		$this->assertEquals('bar', file_get_contents($folder.'foo.txt'));
78 78
 	}
79 79
 
80 80
 	public function testCleanFiles(): void {
@@ -94,19 +94,19 @@  discard block
 block discarded – undo
94 94
 		$manager = $this->getManager();
95 95
 		$folder1 = $manager->getTemporaryFolder();
96 96
 		$folder2 = $manager->getTemporaryFolder();
97
-		touch($folder1 . 'foo.txt');
98
-		touch($folder1 . 'bar.txt');
97
+		touch($folder1.'foo.txt');
98
+		touch($folder1.'bar.txt');
99 99
 		$this->assertTrue(file_exists($folder1));
100 100
 		$this->assertTrue(file_exists($folder2));
101
-		$this->assertTrue(file_exists($folder1 . 'foo.txt'));
102
-		$this->assertTrue(file_exists($folder1 . 'bar.txt'));
101
+		$this->assertTrue(file_exists($folder1.'foo.txt'));
102
+		$this->assertTrue(file_exists($folder1.'bar.txt'));
103 103
 
104 104
 		$manager->clean();
105 105
 
106 106
 		$this->assertFalse(file_exists($folder1));
107 107
 		$this->assertFalse(file_exists($folder2));
108
-		$this->assertFalse(file_exists($folder1 . 'foo.txt'));
109
-		$this->assertFalse(file_exists($folder1 . 'bar.txt'));
108
+		$this->assertFalse(file_exists($folder1.'foo.txt'));
109
+		$this->assertFalse(file_exists($folder1.'bar.txt'));
110 110
 	}
111 111
 
112 112
 	public function testCleanOld(): void {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 		$oldFile = $manager->getTemporaryFile('txt');
115 115
 		$newFile = $manager->getTemporaryFile('txt');
116 116
 		$folder = $manager->getTemporaryFolder();
117
-		$nonOcFile = $this->baseDir . '/foo.txt';
117
+		$nonOcFile = $this->baseDir.'/foo.txt';
118 118
 		file_put_contents($nonOcFile, 'bar');
119 119
 
120 120
 		$past = time() - 2 * 3600;
Please login to merge, or discard this patch.
tests/lib/Files/SimpleFS/InMemoryFileTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	public function setupTestPdf() {
36 36
 		$fileContents = file_get_contents(
37
-			__DIR__ . '/../../../data/test.pdf'
37
+			__DIR__.'/../../../data/test.pdf'
38 38
 		);
39 39
 		$this->testPdf = new InMemoryFile('test.pdf', $fileContents);
40 40
 	}
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function testGetContent(): void {
87 87
 		self::assertEquals(
88
-			file_get_contents(__DIR__ . '/../../../data/test.pdf'),
88
+			file_get_contents(__DIR__.'/../../../data/test.pdf'),
89 89
 			$this->testPdf->getContent()
90 90
 		);
91 91
 	}
Please login to merge, or discard this patch.
tests/lib/Files/Mount/MountTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 	public function testWrapper(): void {
28 28
 		$test = $this;
29
-		$wrapper = function ($mountPoint, $storage) use (&$test) {
29
+		$wrapper = function($mountPoint, $storage) use (&$test) {
30 30
 			$test->assertEquals('/foo/', $mountPoint);
31 31
 			$test->assertInstanceOf('\OC\Files\Storage\Storage', $storage);
32 32
 			return new Wrapper(['storage' => $storage]);
Please login to merge, or discard this patch.
tests/lib/Files/Mount/ManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 class LongId extends Temporary {
14 14
 	public function getId(): string {
15
-		return 'long:' . str_repeat('foo', 50) . parent::getId();
15
+		return 'long:'.str_repeat('foo', 50).parent::getId();
16 16
 	}
17 17
 }
18 18
 
Please login to merge, or discard this patch.
tests/lib/Files/Mount/ObjectStorePreviewCacheMountProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 		];
69 69
 		$this->config->expects($this->any())
70 70
 			->method('getSystemValue')
71
-			->willReturnCallback(function ($config) use ($objectstoreConfig) {
71
+			->willReturnCallback(function($config) use ($objectstoreConfig) {
72 72
 				if ($config === 'objectstore_multibucket') {
73 73
 					return $objectstoreConfig;
74 74
 				} elseif ($config === 'objectstore.multibucket.preview-distribution') {
Please login to merge, or discard this patch.
tests/lib/Files/Mount/RootMountProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	private function getConfig(array $systemConfig): IConfig {
33 33
 		$config = $this->createMock(IConfig::class);
34 34
 		$config->method('getSystemValue')
35
-			->willReturnCallback(function (string $key, $default) use ($systemConfig) {
35
+			->willReturnCallback(function(string $key, $default) use ($systemConfig) {
36 36
 				return $systemConfig[$key] ?? $default;
37 37
 			});
38 38
 		return $config;
Please login to merge, or discard this patch.