File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 66use Redmine \Api \Project ;
77use Redmine \Client \Client ;
88use Redmine \Exception \MissingParameterException ;
9+ use ReflectionMethod ;
10+ use SimpleXMLElement ;
911
1012/**
1113 * @coversDefaultClass \Redmine\Api\Project
@@ -534,4 +536,19 @@ public function testUpdateCallsPut()
534536 // Perform the tests
535537 $ this ->assertSame ($ response , $ api ->update (5 , $ parameters ));
536538 }
539+
540+ /**
541+ * @covers \Redmine\Api\Project::prepareParamsXml
542+ */
543+ public function testDeprecatedPrepareParamsXml ()
544+ {
545+ $ client = $ this ->createMock (Client::class);
546+
547+ $ api = new Project ($ client );
548+
549+ $ method = new ReflectionMethod ($ api , 'prepareParamsXml ' );
550+ $ method ->setAccessible (true );
551+
552+ $ this ->assertInstanceOf (SimpleXMLElement::class, $ method ->invoke ($ api , ['id ' => 1 ]));
553+ }
537554}
You can’t perform that action at this time.
0 commit comments