File: 0006-Tag-tests-relying-on-remote-network.patch

package info (click to toggle)
composer 2.5.5-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,484 kB
  • sloc: php: 71,775; makefile: 70; xml: 39
file content (81 lines) | stat: -rw-r--r-- 3,392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 11 Dec 2020 11:49:36 -0400
Subject: Tag tests relying on remote network

---
 tests/Composer/Test/Command/DiagnoseCommandTest.php | 6 ++++++
 tests/Composer/Test/Command/RequireCommandTest.php  | 3 +++
 tests/Composer/Test/CompletionFunctionalTest.php    | 1 +
 tests/Composer/Test/Util/RemoteFilesystemTest.php   | 2 ++
 4 files changed, 12 insertions(+)

diff --git a/tests/Composer/Test/Command/DiagnoseCommandTest.php b/tests/Composer/Test/Command/DiagnoseCommandTest.php
index 5ca6702..1422704 100644
--- a/tests/Composer/Test/Command/DiagnoseCommandTest.php
+++ b/tests/Composer/Test/Command/DiagnoseCommandTest.php
@@ -16,6 +16,9 @@ use Composer\Test\TestCase;
 
 class DiagnoseCommandTest extends TestCase
 {
+    /**
+     * @group remote
+     */
     public function testCmdFail(): void
     {
         $this->initTempComposer(['name' => 'foo/bar', 'description' => 'test pkg']);
@@ -34,6 +37,9 @@ Checking https connectivity to packagist: OK
 Checking github.com rate limit: ', $output);
     }
 
+    /**
+     * @group remote
+     */
     public function testCmdSuccess(): void
     {
         $this->initTempComposer(['name' => 'foo/bar', 'description' => 'test pkg', 'license' => 'MIT']);
diff --git a/tests/Composer/Test/Command/RequireCommandTest.php b/tests/Composer/Test/Command/RequireCommandTest.php
index c819a35..f928b5c 100644
--- a/tests/Composer/Test/Command/RequireCommandTest.php
+++ b/tests/Composer/Test/Command/RequireCommandTest.php
@@ -17,6 +17,9 @@ use InvalidArgumentException;
 
 class RequireCommandTest extends TestCase
 {
+    /**
+     * @group remote
+     */
     public function testRequireThrowsIfNoneMatches(): void
     {
         $this->expectException(InvalidArgumentException::class);
diff --git a/tests/Composer/Test/CompletionFunctionalTest.php b/tests/Composer/Test/CompletionFunctionalTest.php
index cb452f1..2a877fc 100644
--- a/tests/Composer/Test/CompletionFunctionalTest.php
+++ b/tests/Composer/Test/CompletionFunctionalTest.php
@@ -122,6 +122,7 @@ class CompletionFunctionalTest extends TestCase
 
     /**
      * @dataProvider getCommandSuggestions
+     * @group remote
      *
      * @param string $input The command that is typed
      * @param string[]|null $expectedSuggestions Sample expected suggestions. Null if nothing is expected.
diff --git a/tests/Composer/Test/Util/RemoteFilesystemTest.php b/tests/Composer/Test/Util/RemoteFilesystemTest.php
index a54e700..06856d3 100644
--- a/tests/Composer/Test/Util/RemoteFilesystemTest.php
+++ b/tests/Composer/Test/Util/RemoteFilesystemTest.php
@@ -276,6 +276,7 @@ class RemoteFilesystemTest extends TestCase
      * Tests that a BitBucket public download is correctly retrieved.
      *
      * @dataProvider provideBitbucketPublicDownloadUrls
+     * @group remote
      * @param non-empty-string $url
      */
     public function testBitBucketPublicDownload(string $url, string $contents): void
@@ -297,6 +298,7 @@ class RemoteFilesystemTest extends TestCase
      * Tests that a BitBucket public download is correctly retrieved when `bitbucket-oauth` is configured.
      *
      * @dataProvider provideBitbucketPublicDownloadUrls
+     * @group remote
      * @param non-empty-string $url
      */
     public function testBitBucketPublicDownloadWithAuthConfigured(string $url, string $contents): void