Skip to content

Commit 61a742e

Browse files
committed
Test annotation.
1 parent c8a6d98 commit 61a742e

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

tests/Api/PersonalAccessTokensTest.php

+8-24
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ protected function getApiClass(): string
2323
return PersonalAccessTokens::class;
2424
}
2525

26-
/**
27-
* @test
28-
*/
26+
#[Test]
2927
public function shouldGetAllTokens(): void
3028
{
3129
$expectedArray = [
@@ -43,9 +41,7 @@ public function shouldGetAllTokens(): void
4341
$this->assertEquals($expectedArray, $api->all());
4442
}
4543

46-
/**
47-
* @test
48-
*/
44+
#[Test]
4945
public function shouldGetActiveTokens(): void
5046
{
5147
$expectedArray = [
@@ -62,9 +58,7 @@ public function shouldGetActiveTokens(): void
6258
$this->assertEquals($expectedArray, $api->all(['state' => 'active']));
6359
}
6460

65-
/**
66-
* @test
67-
*/
61+
#[Test]
6862
public function shouldShowToken(): void
6963
{
7064
$expectedArray = ['id' => 1, 'name' => 'Token 1', 'state' => 'active'];
@@ -79,9 +73,7 @@ public function shouldShowToken(): void
7973
$this->assertEquals($expectedArray, $api->show(1));
8074
}
8175

82-
/**
83-
* @test
84-
*/
76+
#[Test]
8577
public function shouldShowCurrent(): void
8678
{
8779
$expectedArray = ['id' => 1, 'name' => 'Token 1', 'state' => 'active'];
@@ -96,9 +88,7 @@ public function shouldShowCurrent(): void
9688
$this->assertEquals($expectedArray, $api->current());
9789
}
9890

99-
/**
100-
* @test
101-
*/
91+
#[Test]
10292
public function shouldRotate(): void
10393
{
10494
$expectedArray = ['id' => 4, 'name' => 'Token 4'];
@@ -113,9 +103,7 @@ public function shouldRotate(): void
113103
$this->assertEquals($expectedArray, $api->rotate(3));
114104
}
115105

116-
/**
117-
* @test
118-
*/
106+
#[Test]
119107
public function shouldRotateCurrent(): void
120108
{
121109
$expectedArray = ['id' => 4, 'name' => 'Token 4'];
@@ -130,9 +118,7 @@ public function shouldRotateCurrent(): void
130118
$this->assertEquals($expectedArray, $api->rotateCurrent());
131119
}
132120

133-
/**
134-
* @test
135-
*/
121+
#[Test]
136122
public function shouldRemoveToken(): void
137123
{
138124
$expectedBool = true;
@@ -147,9 +133,7 @@ public function shouldRemoveToken(): void
147133
$this->assertEquals($expectedBool, $api->remove(1));
148134
}
149135

150-
/**
151-
* @test
152-
*/
136+
#[Test]
153137
public function shouldRemoveCurrentToken(): void
154138
{
155139
$expectedBool = true;

0 commit comments

Comments
 (0)