Merge pull request #23822 from stweil/master

tests: Fix typos (found by codespell)
This commit is contained in:
Thomas Müller 2016-04-06 15:11:51 +02:00
commit 90c853614d
8 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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');

View File

@ -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

View File

@ -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.");
}
}

View File

@ -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();

View File

@ -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;

View File

@ -124,7 +124,7 @@ class SystemTagManagerTest extends TestCase {
null,
[]
],
// filter by visibile only
// filter by visible only
[
// none visible
[

View File

@ -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();