MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / getVaas

Method getVaas

php/tests/VaasTesting/VaasTest.php:74–93  ·  view source on GitHub ↗
(bool $useCache = false, bool $useHashLookup = true)

Source from the content-addressed store, hash-verified

72 }
73
74 private function getVaas(bool $useCache = false, bool $useHashLookup = true): Vaas
75 {
76 $options = new VaasOptions(
77 useHashLookup: $useHashLookup,
78 useCache: $useCache,
79 vaasUrl: $_ENV["VAAS_URL"]
80 );
81
82 $authenticator = new ClientCredentialsGrantAuthenticator(
83 $_ENV["CLIENT_ID"],
84 $_ENV["CLIENT_SECRET"],
85 $_ENV["TOKEN_URL"]
86 );
87
88 return Vaas::builder()
89 ->withAuthenticator($authenticator)
90 ->withOptions($options)
91 ->withLogger($this->logger)
92 ->build();
93 }
94
95 public function testForSha256_WithMaliciousSha256_GetsMaliciousResponse(): void
96 {

Calls 5

buildMethod · 0.45
withLoggerMethod · 0.45
withOptionsMethod · 0.45
withAuthenticatorMethod · 0.45
builderMethod · 0.45

Tested by

no test coverage detected