@@ -15,7 +15,7 @@ public function shouldCreateOrUpdateEnvironment()
15
15
->method ('put ' )
16
16
->with ('/repos/KnpLabs/php-github-api/environments ' );
17
17
18
- $ api ->createOrUpdate ('KnpLabs ' , 'php-github-api ' );
18
+ $ api ->createOrUpdate ('KnpLabs ' , 'php-github-api ' , ' production ' );
19
19
}
20
20
21
21
/**
@@ -36,15 +36,15 @@ public function shouldGetAllEnvironments()
36
36
*/
37
37
public function shouldShowEnvironment ()
38
38
{
39
- $ expectedValue = [ ' name ' => 123 ] ;
39
+ $ expectedValue = ' production ' ;
40
40
41
41
$ api = $ this ->getApiMock ();
42
42
$ api ->expects ($ this ->once ())
43
43
->method ('get ' )
44
- ->with ('/repos/KnpLabs/php-github-api/environments/123 ' )
44
+ ->with ('/repos/KnpLabs/php-github-api/environments/production ' )
45
45
->will ($ this ->returnValue ($ expectedValue ));
46
46
47
- $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpLabs ' , 'php-github-api ' , 123 ));
47
+ $ this ->assertEquals ($ expectedValue , $ api ->show ('KnpLabs ' , 'php-github-api ' , ' production ' ));
48
48
}
49
49
50
50
/**
@@ -55,10 +55,10 @@ public function shouldDeleteEnvironment()
55
55
$ api = $ this ->getApiMock ();
56
56
$ api ->expects ($ this ->once ())
57
57
->method ('delete ' )
58
- ->with ('/repos/KnpLabs/php-github-api/environments/123 ' )
58
+ ->with ('/repos/KnpLabs/php-github-api/environments/production ' )
59
59
->will ($ this ->returnValue (null ));
60
60
61
- $ this ->assertNull ($ api ->remove ('KnpLabs ' , 'php-github-api ' , 123 ));
61
+ $ this ->assertNull ($ api ->remove ('KnpLabs ' , 'php-github-api ' , ' production ' ));
62
62
}
63
63
64
64
/**
0 commit comments