invokingTheCommand('config:system:delete memcache.local'); } /** * @Given /^route "([^"]*)" of app "([^"]*)" is defined in routes.php$/ */ public function routeOfAppIsDefinedInRoutesPhP(string $route, string $app): void { $previousUser = $this->currentUser; $this->currentUser = 'admin'; $this->sendingTo('GET', "/apps/testing/api/v1/routes/routesphp/{$app}"); $this->theHTTPStatusCodeShouldBe('200'); Assert::assertStringContainsString($route, $this->response->getBody()->getContents()); $this->currentUser = $previousUser; } }