@@ -27,7 +27,7 @@ public function testShowPropertyExists()
2727 'property2 ' => 'value2 ' ,
2828 ];
2929
30- $ api = $ this ->getApiMock (CustomProperties::class );
30+ $ api = $ this ->getApiMock ();
3131 $ api ->expects ($ this ->once ())
3232 ->method ('get ' )
3333 ->with ('/repos/owner/repo/properties/values ' )
@@ -44,19 +44,19 @@ public function testShowPropertyDoesNotExist()
4444 'property2 ' => 'value2 ' ,
4545 ];
4646
47- $ api = $ this ->getApiMock (CustomProperties::class );
47+ $ api = $ this ->getApiMock ();
4848 $ api ->expects ($ this ->once ())
4949 ->method ('get ' )
5050 ->with ('/repos/owner/repo/properties/values ' )
5151 ->willReturn ($ allProperties );
5252
5353 $ this ->expectException (\RuntimeException::class);
54- $ this ->expectExceptionMessage ("Property ' property3' not found. " );
54+ $ this ->expectExceptionMessage ("Property [ property3] not found. " );
5555
5656 $ api ->show ('owner ' , 'repo ' , 'property3 ' );
5757 }
5858
59- public function testCreateOrUpdate ()
59+ public function testUpdate ()
6060 {
6161 $ params = [
6262 'property1 ' => 'newValue1 ' ,
@@ -68,13 +68,13 @@ public function testCreateOrUpdate()
6868 'property2 ' => 42 ,
6969 ];
7070
71- $ api = $ this ->getApiMock (CustomProperties::class );
71+ $ api = $ this ->getApiMock ();
7272 $ api ->expects ($ this ->once ())
7373 ->method ('patch ' )
7474 ->with ('/repos/owner/repo/properties/values ' , $ params )
7575 ->willReturn ($ expectedResponse );
7676
77- $ this ->assertEquals ($ expectedResponse , $ api ->createOrUpdate ('owner ' , 'repo ' , $ params ));
77+ $ this ->assertEquals ($ expectedResponse , $ api ->update ('owner ' , 'repo ' , $ params ));
7878 }
7979
8080 protected function getApiClass ()
0 commit comments