diff options
author | Stefan Weil <sw@weilnetz.de> | 2016-04-06 12:14:52 +0200 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2016-04-06 15:08:27 +0200 |
commit | 02e226a6b3f77c96690f873e8f71b512359e58df (patch) | |
tree | 53ff6c821f1596edd004c507822c34b6c66f36f3 /tests | |
parent | dda739c0cc3b584d89e0745b2cd9eb9599124d28 (diff) | |
download | nextcloud-server-02e226a6b3f77c96690f873e8f71b512359e58df.tar.gz nextcloud-server-02e226a6b3f77c96690f873e8f71b512359e58df.zip |
tests: Fix typos (found by codespell)
Fix also a small grammar issue.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/openssl.cnf | 4 | ||||
-rw-r--r-- | tests/lib/cache.php | 2 | ||||
-rw-r--r-- | tests/lib/datetimeformatter.php | 4 | ||||
-rw-r--r-- | tests/lib/db/connection.php | 2 | ||||
-rw-r--r-- | tests/lib/files/storage/storage.php | 4 | ||||
-rw-r--r-- | tests/lib/hookhelper.php | 2 | ||||
-rw-r--r-- | tests/lib/systemtag/systemtagmanagertest.php | 2 | ||||
-rw-r--r-- | tests/lib/testcase.php | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/tests/data/openssl.cnf b/tests/data/openssl.cnf index 1eb86c40126..1aada1fa73f 100644 --- a/tests/data/openssl.cnf +++ b/tests/data/openssl.cnf @@ -55,7 +55,7 @@ crl = $dir/crl.pem # The current CRL private_key = $dir/private/cakey.pem# The private key RANDFILE = $dir/private/.rand # private random number file -x509_extensions = usr_cert # The extentions to add to the cert +x509_extensions = usr_cert # The extensions to add to the cert # Comment out the following two lines for the "traditional" # (and highly broken) format. @@ -107,7 +107,7 @@ default_bits = 2048 default_keyfile = privkey.pem distinguished_name = req_distinguished_name attributes = req_attributes -x509_extensions = v3_ca # The extentions to add to the self signed cert +x509_extensions = v3_ca # The extensions to add to the self signed cert # Passwords for private keys if not present they will be prompted for # input_password = secret diff --git a/tests/lib/cache.php b/tests/lib/cache.php index feddcac4693..a91f37467d2 100644 --- a/tests/lib/cache.php +++ b/tests/lib/cache.php @@ -28,7 +28,7 @@ abstract class Test_Cache extends \Test\TestCase { $this->instance->set('value1', $value); $this->assertTrue($this->instance->hasKey('value1')); $received=$this->instance->get('value1'); - $this->assertEquals($value, $received, 'Value recieved from cache not equal to the original'); + $this->assertEquals($value, $received, 'Value received from cache not equal to the original'); $value='ipsum lorum'; $this->instance->set('value1', $value); $received=$this->instance->get('value1'); diff --git a/tests/lib/datetimeformatter.php b/tests/lib/datetimeformatter.php index 9a50ee4a257..bf1ef3b84dc 100644 --- a/tests/lib/datetimeformatter.php +++ b/tests/lib/datetimeformatter.php @@ -42,7 +42,7 @@ class DateTimeFormatter extends TestCase { } public function formatTimeSpanData() { - $time = 1416916800; // Use a fixed timestamp so we dont switch days/years with the getTimestampAgo + $time = 1416916800; // Use a fixed timestamp so we don't switch days/years with the getTimestampAgo $deL10N = new \OC_L10N('lib', 'de'); return array( array('seconds ago', $time, $time), @@ -80,7 +80,7 @@ class DateTimeFormatter extends TestCase { } public function formatDateSpanData() { - $time = 1416916800; // Use a fixed timestamp so we dont switch days/years with the getTimestampAgo + $time = 1416916800; // Use a fixed timestamp so we don't switch days/years with the getTimestampAgo $deL10N = new \OC_L10N('lib', 'de'); return array( // Normal testing diff --git a/tests/lib/db/connection.php b/tests/lib/db/connection.php index 62d0a77ca1f..4022bee511e 100644 --- a/tests/lib/db/connection.php +++ b/tests/lib/db/connection.php @@ -72,7 +72,7 @@ class Connection extends \Test\TestCase { // sqlite removes the tables after closing the DB $this->assertTrue(true); } else { - $this->assertFalse($this->connection->tableExists($table), 'Table ' . $table . ' doesnt exists.'); + $this->assertFalse($this->connection->tableExists($table), 'Table ' . $table . " doesn't exist."); } } diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php index f3d265df2de..ed2ea87f9d9 100644 --- a/tests/lib/files/storage/storage.php +++ b/tests/lib/files/storage/storage.php @@ -87,13 +87,13 @@ abstract class Storage extends \Test\TestCase { } $this->assertEquals(array($directory), $content); - $this->assertFalse($this->instance->mkdir('/' . $directory)); //cant create existing folders + $this->assertFalse($this->instance->mkdir('/' . $directory)); //can't create existing folders $this->assertTrue($this->instance->rmdir('/' . $directory)); $this->wait(); $this->assertFalse($this->instance->file_exists('/' . $directory)); - $this->assertFalse($this->instance->rmdir('/' . $directory)); //cant remove non existing folders + $this->assertFalse($this->instance->rmdir('/' . $directory)); //can't remove non existing folders $dh = $this->instance->opendir('/'); $content = array(); diff --git a/tests/lib/hookhelper.php b/tests/lib/hookhelper.php index 93411bd068b..f1cce831477 100644 --- a/tests/lib/hookhelper.php +++ b/tests/lib/hookhelper.php @@ -104,7 +104,7 @@ class HookHelper { } /** - * Callback that sets the run paramter to false + * Callback that sets the run parameter to false */ public static function cancellingCallback($params) { $params[Filesystem::signal_param_run] = false; diff --git a/tests/lib/systemtag/systemtagmanagertest.php b/tests/lib/systemtag/systemtagmanagertest.php index 64220205ade..1afb147f08a 100644 --- a/tests/lib/systemtag/systemtagmanagertest.php +++ b/tests/lib/systemtag/systemtagmanagertest.php @@ -124,7 +124,7 @@ class SystemTagManagerTest extends TestCase { null, [] ], - // filter by visibile only + // filter by visible only [ // none visible [ diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index 008b96b3417..fb0db8cd86c 100644 --- a/tests/lib/testcase.php +++ b/tests/lib/testcase.php @@ -349,7 +349,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { $user = null; } - \OC_Util::tearDownFS(); // command cant reply on the fs being setup + \OC_Util::tearDownFS(); // command can't reply on the fs being setup $this->commandBus->run(); \OC_Util::tearDownFS(); |