summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-11 19:34:26 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-11-16 15:37:12 +0100
commitf59238444a7df953442ce6687998ace41fd401fc (patch)
tree5a3bd0decf16a29193ebc4895b15aea43350b0e4
parent1d0a70e4166cf8c2974c1b669ba8b901478f86d7 (diff)
downloadnextcloud-server-f59238444a7df953442ce6687998ace41fd401fc.tar.gz
nextcloud-server-f59238444a7df953442ce6687998ace41fd401fc.zip
Fix typos in method names
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--tests/lib/Share20/ManagerTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index c6bd251b136..4e9facbeb2a 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -766,7 +766,7 @@ class ManagerTest extends \Test\TestCase {
}
- public function testvalidateExpirationDateInPast() {
+ public function testValidateExpirationDateInPast() {
$this->expectException(\OCP\Share\Exceptions\GenericShareException::class);
$this->expectExceptionMessage('Expiration date is in the past');
@@ -782,7 +782,7 @@ class ManagerTest extends \Test\TestCase {
}
- public function testvalidateExpirationDateEnforceButNotSet() {
+ public function testValidateExpirationDateEnforceButNotSet() {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Expiration date is enforced');
@@ -798,7 +798,7 @@ class ManagerTest extends \Test\TestCase {
self::invokePrivate($this->manager, 'validateExpirationDate', [$share]);
}
- public function testvalidateExpirationDateEnforceButNotEnabledAndNotSet() {
+ public function testValidateExpirationDateEnforceButNotEnabledAndNotSet() {
$share = $this->manager->newShare();
$share->setProviderId('foo')->setId('bar');
@@ -812,7 +812,7 @@ class ManagerTest extends \Test\TestCase {
$this->assertNull($share->getExpirationDate());
}
- public function testvalidateExpirationDateEnforceButNotSetNewShare() {
+ public function testValidateExpirationDateEnforceButNotSetNewShare() {
$share = $this->manager->newShare();
$this->config->method('getAppValue')
@@ -833,7 +833,7 @@ class ManagerTest extends \Test\TestCase {
$this->assertEquals($expected, $share->getExpirationDate());
}
- public function testvalidateExpirationDateEnforceToFarIntoFuture() {
+ public function testValidateExpirationDateEnforceTooFarIntoFuture() {
// Expire date in the past
$future = new \DateTime();
$future->add(new \DateInterval('P7D'));
@@ -857,7 +857,7 @@ class ManagerTest extends \Test\TestCase {
}
}
- public function testvalidateExpirationDateEnforceValid() {
+ public function testValidateExpirationDateEnforceValid() {
// Expire date in the past
$future = new \DateTime();
$future->add(new \DateInterval('P2D'));
@@ -886,7 +886,7 @@ class ManagerTest extends \Test\TestCase {
$this->assertEquals($expected, $share->getExpirationDate());
}
- public function testvalidateExpirationDateNoDateNoDefaultNull() {
+ public function testValidateExpirationDateNoDateNoDefaultNull() {
$date = new \DateTime();
$date->add(new \DateInterval('P5D'));
@@ -907,7 +907,7 @@ class ManagerTest extends \Test\TestCase {
$this->assertEquals($expected, $share->getExpirationDate());
}
- public function testvalidateExpirationDateNoDateNoDefault() {
+ public function testValidateExpirationDateNoDateNoDefault() {
$hookListner = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
\OCP\Util::connectHook('\OC\Share', 'verifyExpirationDate', $hookListner, 'listener');
$hookListner->expects($this->once())->method('listener')->with($this->callback(function ($data) {
@@ -922,7 +922,7 @@ class ManagerTest extends \Test\TestCase {
$this->assertNull($share->getExpirationDate());
}
- public function testvalidateExpirationDateNoDateDefault() {
+ public function testValidateExpirationDateNoDateDefault() {
$future = new \DateTime();
$future->add(new \DateInterval('P3D'));
$future->setTime(0,0,0);