diff options
Diffstat (limited to 'tests/library/SSRS/ReportTest.php')
-rwxr-xr-x | tests/library/SSRS/ReportTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/library/SSRS/ReportTest.php b/tests/library/SSRS/ReportTest.php index 68a41de..a0e1245 100755 --- a/tests/library/SSRS/ReportTest.php +++ b/tests/library/SSRS/ReportTest.php @@ -83,6 +83,21 @@ class SSRS_ReportTest extends PHPUnit_Framework_TestCase { $this->assertEquals($expected, $result); } + public function testLoadChildrenCheckRecursiveParameterIsSetAndIsBoolean() { + $soapMock = $this->getMockFromWsdl(dirname(__FILE__) . '/ReportTest/ReportService2010.wsdl', 'SoapClientMockChildren2'); + + $recursiveParam = true; + + $soapMock->expects($this->any()) + ->method('ListChildren') + ->with($this->equalTo(array('ItemPath' => '/Reports', 'Recursive' => true))); + + $ssrs = new SSRS_Report('http://test/ReportServer'); + $ssrs->setSoapService($soapMock); + + $result = $ssrs->listChildren('/Reports', $recursiveParam); + } + public function testLoadItemDefinitionsReturnsXMLStringWithInStdClass() { $soapMock = $this->getMockFromWsdl(dirname(__FILE__) . '/ReportTest/ReportService2010.wsdl', 'SoapClientMockDefinitions'); |