@@ -23,9 +23,7 @@ protected function getApiClass(): string
23
23
return PersonalAccessTokens::class;
24
24
}
25
25
26
- /**
27
- * @test
28
- */
26
+ #[Test]
29
27
public function shouldGetAllTokens (): void
30
28
{
31
29
$ expectedArray = [
@@ -43,9 +41,7 @@ public function shouldGetAllTokens(): void
43
41
$ this ->assertEquals ($ expectedArray , $ api ->all ());
44
42
}
45
43
46
- /**
47
- * @test
48
- */
44
+ #[Test]
49
45
public function shouldGetActiveTokens (): void
50
46
{
51
47
$ expectedArray = [
@@ -62,9 +58,7 @@ public function shouldGetActiveTokens(): void
62
58
$ this ->assertEquals ($ expectedArray , $ api ->all (['state ' => 'active ' ]));
63
59
}
64
60
65
- /**
66
- * @test
67
- */
61
+ #[Test]
68
62
public function shouldShowToken (): void
69
63
{
70
64
$ expectedArray = ['id ' => 1 , 'name ' => 'Token 1 ' , 'state ' => 'active ' ];
@@ -79,9 +73,7 @@ public function shouldShowToken(): void
79
73
$ this ->assertEquals ($ expectedArray , $ api ->show (1 ));
80
74
}
81
75
82
- /**
83
- * @test
84
- */
76
+ #[Test]
85
77
public function shouldShowCurrent (): void
86
78
{
87
79
$ expectedArray = ['id ' => 1 , 'name ' => 'Token 1 ' , 'state ' => 'active ' ];
@@ -96,9 +88,7 @@ public function shouldShowCurrent(): void
96
88
$ this ->assertEquals ($ expectedArray , $ api ->current ());
97
89
}
98
90
99
- /**
100
- * @test
101
- */
91
+ #[Test]
102
92
public function shouldRotate (): void
103
93
{
104
94
$ expectedArray = ['id ' => 4 , 'name ' => 'Token 4 ' ];
@@ -113,9 +103,7 @@ public function shouldRotate(): void
113
103
$ this ->assertEquals ($ expectedArray , $ api ->rotate (3 ));
114
104
}
115
105
116
- /**
117
- * @test
118
- */
106
+ #[Test]
119
107
public function shouldRotateCurrent (): void
120
108
{
121
109
$ expectedArray = ['id ' => 4 , 'name ' => 'Token 4 ' ];
@@ -130,9 +118,7 @@ public function shouldRotateCurrent(): void
130
118
$ this ->assertEquals ($ expectedArray , $ api ->rotateCurrent ());
131
119
}
132
120
133
- /**
134
- * @test
135
- */
121
+ #[Test]
136
122
public function shouldRemoveToken (): void
137
123
{
138
124
$ expectedBool = true ;
@@ -147,9 +133,7 @@ public function shouldRemoveToken(): void
147
133
$ this ->assertEquals ($ expectedBool , $ api ->remove (1 ));
148
134
}
149
135
150
- /**
151
- * @test
152
- */
136
+ #[Test]
153
137
public function shouldRemoveCurrentToken (): void
154
138
{
155
139
$ expectedBool = true ;
0 commit comments