File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 6
6
use Redmine \Api \Project ;
7
7
use Redmine \Client \Client ;
8
8
use Redmine \Exception \MissingParameterException ;
9
+ use ReflectionMethod ;
10
+ use SimpleXMLElement ;
9
11
10
12
/**
11
13
* @coversDefaultClass \Redmine\Api\Project
@@ -534,4 +536,19 @@ public function testUpdateCallsPut()
534
536
// Perform the tests
535
537
$ this ->assertSame ($ response , $ api ->update (5 , $ parameters ));
536
538
}
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
+ }
537
554
}
You can’t perform that action at this time.
0 commit comments