@@ -751,11 +751,11 @@ private function getOpenProjectAPIService(
751751 true
752752 );
753753 // for nextcloud above 31 OC_Util::getVersion() method does not exists
754- if (class_exists ('OCP\ServerVersion ' )) {
754+ if (\ class_exists ('OCP\ServerVersion ' )) {
755755 $ version = $ this ->createMock (\OCP \ServerVersion::class);
756756 } else {
757757 /** @psalm-suppress UndefinedMethod getVersion() method is not in stable31 so making psalm not complain */
758- $ version = $ this ->createMock (\stdClass ::class);
758+ $ version = $ this ->createMock (\OC_Util ::class);
759759 }
760760
761761 //changed from nextcloud 26
@@ -874,23 +874,23 @@ private function getOpenProjectAPIServiceMock(
874874 public function urlsDataProvider (): array {
875875 return [
876876 ['http://127.0.0.1 ' , true ],
877- // ['https://127.0.0.1', true],
878- // ['https://127.0.0.1:443', true],
879- // ['http://127.0.0.1:8080', true],
880- // ['http://localhost', true],
881- // ['http://localhost', true],
882- // ['http://www.openproject.com', true],
883- // ['http://www.openproject.it:3000', true],
884- // ['https://www.openproject.it:8081', true],
885- // ['https://www.openproject.it:8081/home', true],
886- // ['ftp://localhost', false],
887- // ['http://loca lhost', false],
888- // ['https://loca lhost', false],
889- // ['http://openproject.dev ', false],
890- // ['http:/openproject.dev', false],
891- // ['http//openproject.dev', false],
892- // ['openproject.dev', false],
893- // ['://openproject.dev', false],
877+ ['https://127.0.0.1 ' , true ],
878+ ['https://127.0.0.1:443 ' , true ],
879+ ['http://127.0.0.1:8080 ' , true ],
880+ ['http://localhost ' , true ],
881+ ['http://localhost ' , true ],
882+ ['http://www.openproject.com ' , true ],
883+ ['http://www.openproject.it:3000 ' , true ],
884+ ['https://www.openproject.it:8081 ' , true ],
885+ ['https://www.openproject.it:8081/home ' , true ],
886+ ['ftp://localhost ' , false ],
887+ ['http://loca lhost ' , false ],
888+ ['https://loca lhost ' , false ],
889+ ['http://openproject.dev ' , false ],
890+ ['http:/openproject.dev ' , false ],
891+ ['http//openproject.dev ' , false ],
892+ ['openproject.dev ' , false ],
893+ ['://openproject.dev ' , false ],
894894 ];
895895 }
896896
0 commit comments