Merge pull request #23822 from stweil/master
tests: Fix typos (found by codespell)
This commit is contained in:
commit
90c853614d
|
@ -55,7 +55,7 @@ crl = $dir/crl.pem # The current CRL
|
||||||
private_key = $dir/private/cakey.pem# The private key
|
private_key = $dir/private/cakey.pem# The private key
|
||||||
RANDFILE = $dir/private/.rand # private random number file
|
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"
|
# Comment out the following two lines for the "traditional"
|
||||||
# (and highly broken) format.
|
# (and highly broken) format.
|
||||||
|
@ -107,7 +107,7 @@ default_bits = 2048
|
||||||
default_keyfile = privkey.pem
|
default_keyfile = privkey.pem
|
||||||
distinguished_name = req_distinguished_name
|
distinguished_name = req_distinguished_name
|
||||||
attributes = req_attributes
|
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
|
# Passwords for private keys if not present they will be prompted for
|
||||||
# input_password = secret
|
# input_password = secret
|
||||||
|
|
|
@ -28,7 +28,7 @@ abstract class Test_Cache extends \Test\TestCase {
|
||||||
$this->instance->set('value1', $value);
|
$this->instance->set('value1', $value);
|
||||||
$this->assertTrue($this->instance->hasKey('value1'));
|
$this->assertTrue($this->instance->hasKey('value1'));
|
||||||
$received=$this->instance->get('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';
|
$value='ipsum lorum';
|
||||||
$this->instance->set('value1', $value);
|
$this->instance->set('value1', $value);
|
||||||
$received=$this->instance->get('value1');
|
$received=$this->instance->get('value1');
|
||||||
|
|
|
@ -42,7 +42,7 @@ class DateTimeFormatter extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function formatTimeSpanData() {
|
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');
|
$deL10N = new \OC_L10N('lib', 'de');
|
||||||
return array(
|
return array(
|
||||||
array('seconds ago', $time, $time),
|
array('seconds ago', $time, $time),
|
||||||
|
@ -80,7 +80,7 @@ class DateTimeFormatter extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function formatDateSpanData() {
|
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');
|
$deL10N = new \OC_L10N('lib', 'de');
|
||||||
return array(
|
return array(
|
||||||
// Normal testing
|
// Normal testing
|
||||||
|
|
|
@ -72,7 +72,7 @@ class Connection extends \Test\TestCase {
|
||||||
// sqlite removes the tables after closing the DB
|
// sqlite removes the tables after closing the DB
|
||||||
$this->assertTrue(true);
|
$this->assertTrue(true);
|
||||||
} else {
|
} else {
|
||||||
$this->assertFalse($this->connection->tableExists($table), 'Table ' . $table . ' doesnt exists.');
|
$this->assertFalse($this->connection->tableExists($table), 'Table ' . $table . " doesn't exist.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,13 +87,13 @@ abstract class Storage extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
$this->assertEquals(array($directory), $content);
|
$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->assertTrue($this->instance->rmdir('/' . $directory));
|
||||||
|
|
||||||
$this->wait();
|
$this->wait();
|
||||||
$this->assertFalse($this->instance->file_exists('/' . $directory));
|
$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('/');
|
$dh = $this->instance->opendir('/');
|
||||||
$content = array();
|
$content = array();
|
||||||
|
|
|
@ -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) {
|
public static function cancellingCallback($params) {
|
||||||
$params[Filesystem::signal_param_run] = false;
|
$params[Filesystem::signal_param_run] = false;
|
||||||
|
|
|
@ -124,7 +124,7 @@ class SystemTagManagerTest extends TestCase {
|
||||||
null,
|
null,
|
||||||
[]
|
[]
|
||||||
],
|
],
|
||||||
// filter by visibile only
|
// filter by visible only
|
||||||
[
|
[
|
||||||
// none visible
|
// none visible
|
||||||
[
|
[
|
||||||
|
|
|
@ -349,7 +349,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
||||||
$user = null;
|
$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();
|
$this->commandBus->run();
|
||||||
\OC_Util::tearDownFS();
|
\OC_Util::tearDownFS();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue