Skip to content

Commit 48da337

Browse files
committed
Fixed tests
Tested locally all passed
1 parent 536ac08 commit 48da337

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Github/Tests/Api/EnvironmentTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function shouldCreateOrUpdateEnvironment()
1515
->method('put')
1616
->with('/repos/KnpLabs/php-github-api/environments');
1717

18-
$api->createOrUpdate('KnpLabs', 'php-github-api');
18+
$api->createOrUpdate('KnpLabs', 'php-github-api', 'production');
1919
}
2020

2121
/**
@@ -36,15 +36,15 @@ public function shouldGetAllEnvironments()
3636
*/
3737
public function shouldShowEnvironment()
3838
{
39-
$expectedValue = ['name' => 123];
39+
$expectedValue = 'production';
4040

4141
$api = $this->getApiMock();
4242
$api->expects($this->once())
4343
->method('get')
44-
->with('/repos/KnpLabs/php-github-api/environments/123')
44+
->with('/repos/KnpLabs/php-github-api/environments/production')
4545
->will($this->returnValue($expectedValue));
4646

47-
$this->assertEquals($expectedValue, $api->show('KnpLabs', 'php-github-api', 123));
47+
$this->assertEquals($expectedValue, $api->show('KnpLabs', 'php-github-api', 'production'));
4848
}
4949

5050
/**
@@ -55,10 +55,10 @@ public function shouldDeleteEnvironment()
5555
$api = $this->getApiMock();
5656
$api->expects($this->once())
5757
->method('delete')
58-
->with('/repos/KnpLabs/php-github-api/environments/123')
58+
->with('/repos/KnpLabs/php-github-api/environments/production')
5959
->will($this->returnValue(null));
6060

61-
$this->assertNull($api->remove('KnpLabs', 'php-github-api', 123));
61+
$this->assertNull($api->remove('KnpLabs', 'php-github-api', 'production'));
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)