setUserAccess('anonymous', 'view', array(7)); } public function test_ApiInternalCallScript_ExecutesCorrectly() { $output = $this->executeApiInternalCall(); $expectedFileOutput = "\n"; $this->assertEquals($expectedFileOutput, $output); } private function executeApiInternalCall() { $proxyIncludeScript = PIWIK_INCLUDE_PATH . '/tests/PHPUnit/proxy/include_single_file.php'; $apiInternalCallScript = PIWIK_INCLUDE_PATH . '/misc/others/api_internal_call.php'; $command = "php '$proxyIncludeScript' '$apiInternalCallScript' 2>&1"; return shell_exec($command); } }