@@ -10,12 +10,12 @@ class DeploymentTest extends TestCase
10
10
public function shouldCreateDeployment ()
11
11
{
12
12
$ api = $ this ->getApiMock ();
13
- $ deploymentData = array (" ref " => " fd6a5f9e5a430dddae8d6a8ea378f913d3a766f9 " );
13
+ $ deploymentData = array (' ref ' => ' fd6a5f9e5a430dddae8d6a8ea378f913d3a766f9 ' );
14
14
$ api ->expects ($ this ->once ())
15
15
->method ('post ' )
16
16
->with ('repos/KnpLabs/php-github-api/deployments ' , $ deploymentData );
17
17
18
- $ api ->create (" KnpLabs " , " php-github-api " , $ deploymentData );
18
+ $ api ->create (' KnpLabs ' , ' php-github-api ' , $ deploymentData );
19
19
}
20
20
21
21
/**
@@ -28,7 +28,7 @@ public function shouldGetAllDeployments()
28
28
->method ('get ' )
29
29
->with ('repos/KnpLabs/php-github-api/deployments ' );
30
30
31
- $ api ->all (" KnpLabs " , " php-github-api " );
31
+ $ api ->all (' KnpLabs ' , ' php-github-api ' );
32
32
}
33
33
34
34
/**
@@ -37,13 +37,13 @@ public function shouldGetAllDeployments()
37
37
public function shouldGetAllDeploymentsWithFilterParameters ()
38
38
{
39
39
$ api = $ this ->getApiMock ();
40
- $ filterData = array (" foo " => " bar " , " bar " => " foo " );
40
+ $ filterData = array (' foo ' => ' bar ' , ' bar ' => ' foo ' );
41
41
42
42
$ api ->expects ($ this ->once ())
43
43
->method ('get ' )
44
44
->with ('repos/KnpLabs/php-github-api/deployments ' , $ filterData );
45
45
46
- $ api ->all (" KnpLabs " , " php-github-api " , $ filterData );
46
+ $ api ->all (' KnpLabs ' , ' php-github-api ' , $ filterData );
47
47
}
48
48
49
49
/**
@@ -52,13 +52,13 @@ public function shouldGetAllDeploymentsWithFilterParameters()
52
52
public function shouldCreateStatusUpdate ()
53
53
{
54
54
$ api = $ this ->getApiMock ();
55
- $ statusData = array (" state " => " pending " , " description " => " waiting to start " );
55
+ $ statusData = array (' state ' => ' pending ' , ' description ' => ' waiting to start ' );
56
56
57
57
$ api ->expects ($ this ->once ())
58
58
->method ('post ' )
59
59
->with ('repos/KnpLabs/php-github-api/deployments/1/statuses ' , $ statusData );
60
60
61
- $ api ->updateStatus (" KnpLabs " , " php-github-api " , 1 , $ statusData );
61
+ $ api ->updateStatus (' KnpLabs ' , ' php-github-api ' , 1 , $ statusData );
62
62
}
63
63
64
64
/**
@@ -68,9 +68,9 @@ public function shouldCreateStatusUpdate()
68
68
public function shouldRejectStatusUpdateWithoutStateField ()
69
69
{
70
70
$ api = $ this ->getApiMock ();
71
- $ statusData = array (" description " => " waiting to start " );
71
+ $ statusData = array (' description ' => ' waiting to start ' );
72
72
73
- $ api ->updateStatus (" KnpLabs " , " php-github-api " , 1 , $ statusData );
73
+ $ api ->updateStatus (' KnpLabs ' , ' php-github-api ' , 1 , $ statusData );
74
74
}
75
75
76
76
/**
@@ -83,7 +83,7 @@ public function shouldGetAllStatuses()
83
83
->method ('get ' )
84
84
->with ('repos/KnpLabs/php-github-api/deployments/1/statuses ' );
85
85
86
- $ api ->getStatuses (" KnpLabs " , " php-github-api " , 1 );
86
+ $ api ->getStatuses (' KnpLabs ' , ' php-github-api ' , 1 );
87
87
}
88
88
89
89
protected function getApiClass ()
0 commit comments