From 35d4cb53aeb10f939831691572c7d8a3b97a0e15 Mon Sep 17 00:00:00 2001 From: Kiran Parajuli Date: Wed, 28 Dec 2022 14:30:03 +0545 Subject: [PATCH] Typo fixes on comments with reverting substr related changes Signed-off-by: Kiran Parajuli --- tests/TestHelpers/GraphHelper.php | 2 +- tests/acceptance/features/bootstrap/bootstrap.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestHelpers/GraphHelper.php b/tests/TestHelpers/GraphHelper.php index d52b4cf559..14335d6b83 100644 --- a/tests/TestHelpers/GraphHelper.php +++ b/tests/TestHelpers/GraphHelper.php @@ -84,7 +84,7 @@ class GraphHelper { */ public static function getFullUrl(string $baseUrl, string $path): string { $fullUrl = $baseUrl; - if (!str_ends_with($fullUrl, '/')) { + if (\substr($fullUrl, -1) !== '/') { $fullUrl .= '/'; } $fullUrl .= 'graph/v1.0/' . $path; diff --git a/tests/acceptance/features/bootstrap/bootstrap.php b/tests/acceptance/features/bootstrap/bootstrap.php index c5a6499121..fc5815031b 100644 --- a/tests/acceptance/features/bootstrap/bootstrap.php +++ b/tests/acceptance/features/bootstrap/bootstrap.php @@ -29,12 +29,12 @@ $classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../../../TestHelpers", true); $classLoader->register(); -// while running for the local api tests, the tests code form ownCloud/core is not used +// while running for the local API tests, the tests code from ownCloud/core is not used // so we need the constants to be defined for the tests to use them, but for the case where, -// the tests are running for core api tests, the constants are already defined in the core bootstrap.php +// the tests are running for oC/core API tests, the constants are already defined in the bootstrap.php there // so we do not declare them again to avoid the "already defined" error -// Sleep for 10 milliseconds +// Sleep for 10 milliseconds if (!\defined('STANDARD_SLEEP_TIME_MILLISEC')) { \define('STANDARD_SLEEP_TIME_MILLISEC', 10); }